diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:44:20 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:44:20 +0100 |
commit | 4b7414b3f6869f2bdeb097e4f997498bae9f0aee (patch) | |
tree | 53e9741d7d40f1ff6f77d47fc308b18168dca330 /plugingui/checkbox.cc | |
parent | a1fba9ba11a13f94c524f2ac78206b3fdfb3be74 (diff) |
New box rendering of all widgets. Minor tweaks still missing.
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r-- | plugingui/checkbox.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc index d3c2512..e25624c 100644 --- a/plugingui/checkbox.cc +++ b/plugingui/checkbox.cc @@ -81,8 +81,6 @@ void GUI::CheckBox::keyEvent(KeyEvent *e) void GUI::CheckBox::repaintEvent(GUI::RepaintEvent *e) { - // printf("CheckBox::repaintEvent\n"); - Painter p(this); p.clear(); @@ -96,30 +94,6 @@ void GUI::CheckBox::repaintEvent(GUI::RepaintEvent *e) if(middle) p.drawImage((bg_on.width() - knob.width()) / 2, 0, &knob); else p.drawImage(0, 0, &knob); } - - // int box = width()<height()?width():height(); - - /* - p.clear(); - - float alpha = 0.8; - - p.setColour(Colour(0.5, alpha)); - p.drawFilledRectangle(0,0,box-1,box-1); - - p.setColour(Colour(0.1, alpha)); - p.drawRectangle(0,0,box-1,box-1); - - if(state) { - p.setColour(Colour(0.8, alpha)); - p.drawLine(0,0,box-1,box-1); - p.drawLine(0,box-1,box-1,0); - } - - p.setColour(Colour(0.3, alpha)); - p.drawPoint(0,box-1); - p.drawPoint(box-1,0); - */ /* p.setColour(Colour(1)); Font font; |