QTfrontend/togglebutton.cpp
changeset 2377 f3fab2b09e0c
parent 1933 7b8b0a9032d3
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2376:ece7b87f1334 2377:f3fab2b09e0c
    23 	QVBoxLayout * l = new QVBoxLayout(this);
    23 	QVBoxLayout * l = new QVBoxLayout(this);
    24 	setLayout(l);
    24 	setLayout(l);
    25 
    25 
    26 	pbMain = new QPushButton(this);
    26 	pbMain = new QPushButton(this);
    27 	pbMain->setCheckable(true);
    27 	pbMain->setCheckable(true);
    28 	
    28 
    29 	QPixmap pm(":/res/btnDisabled.png");
    29 	QPixmap pm(":/res/btnDisabled.png");
    30 	QPainter * painter = new QPainter();
    30 	QPainter * painter = new QPainter();
    31 
    31 
    32 	pmChecked.load(img);
    32 	pmChecked.load(img);
    33 	pmDisabled.load(img);
    33 	pmDisabled.load(img);