changeset 4560 | 5d6c7f88db73 |
parent 4416 | 29d2d1548387 |
child 4976 | 088d40d8aba2 |
4559:194d5a7a3fd4 | 4560:5d6c7f88db73 |
---|---|
66 return QSize((maxItems+1)*12, 32); |
66 return QSize((maxItems+1)*12, 32); |
67 } |
67 } |
68 |
68 |
69 void ItemNum::paintEvent(QPaintEvent* event) |
69 void ItemNum::paintEvent(QPaintEvent* event) |
70 { |
70 { |
71 Q_UNUSED(event); |
|
72 |
|
71 QPainter painter(this); |
73 QPainter painter(this); |
72 |
74 |
73 if (numItems==maxItems+1) { |
75 if (numItems==maxItems+1) { |
74 QRect target(0, 0, 100, 32); |
76 QRect target(0, 0, 100, 32); |
75 if (enabled) { |
77 if (enabled) { |