equal
deleted
inserted
replaced
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); |
34 |
34 |
|
35 pbMain->setMaximumWidth(pmChecked.width() + 6); |
|
36 |
35 l->addWidget(pbMain); |
37 l->addWidget(pbMain); |
36 |
38 |
37 painter->begin(&pmDisabled); |
39 painter->begin(&pmDisabled); |
38 painter->drawPixmap(pmDisabled.rect(), pm); |
40 painter->drawPixmap(pmDisabled.rect(), pm); |
39 painter->end(); |
41 painter->end(); |
42 pbMain->setIcon(pmDisabled); |
44 pbMain->setIcon(pmDisabled); |
43 |
45 |
44 connect(pbMain, SIGNAL(toggled(bool)), this, SLOT(eventToggled(bool))); |
46 connect(pbMain, SIGNAL(toggled(bool)), this, SLOT(eventToggled(bool))); |
45 |
47 |
46 lbMain = new QLabel(this); |
48 lbMain = new QLabel(this); |
47 lbMain->setFixedHeight(32); |
49 lbMain->setWordWrap(true); |
|
50 // lbMain->setFixedHeight(32); |
48 |
51 |
49 l->addWidget(lbMain); |
52 l->addWidget(lbMain); |
50 } |
53 } |
51 |
54 |
52 ToggleButtonWidget::~ToggleButtonWidget() |
55 ToggleButtonWidget::~ToggleButtonWidget() |