diff options
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r-- | plugingui/checkbox.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc index 6d85615..b9468d3 100644 --- a/plugingui/checkbox.cc +++ b/plugingui/checkbox.cc @@ -83,32 +83,32 @@ void CheckBox::keyEvent(KeyEvent *e) void CheckBox::repaintEvent(RepaintEvent *e) { - Painter p(this); + Painter p(*this); p.clear(); if(state) { - p.drawImage(0, (knob.height() - bg_on.height()) / 2, &bg_on); + p.drawImage(0, (knob.height() - bg_on.height()) / 2, bg_on); if(middle) { - p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, &knob); + p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, knob); } else { - p.drawImage(bg_on.width() - 40 + 2, 0, &knob); + p.drawImage(bg_on.width() - 40 + 2, 0, knob); } } else { - p.drawImage(0, (knob.height() - bg_off.height()) / 2, &bg_off); + p.drawImage(0, (knob.height() - bg_off.height()) / 2, bg_off); if(middle) { - p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, &knob); + p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, knob); } else { - p.drawImage(0, 0, &knob); + p.drawImage(0, 0, knob); } } } |