summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
commit1f41de14a04240dfd993b030306ac251d962a843 (patch)
tree08d5ef8b74793909a15cb8f3c0b7732819a41f8a /plugingui/checkbox.cc
parent4739f0bed6e6332fcf2c6ed2b04c4ae161c41060 (diff)
Fix a lot of style issues in the code for the new GUI.
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index 0f101ec..a6d52a1 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -32,10 +32,10 @@ namespace GUI
{
CheckBox::CheckBox(Widget* parent)
- : Toggle(parent)
- , bg_on(getImageCache(), ":switch_back_on.png")
- , bg_off(getImageCache(), ":switch_back_off.png")
- , knob(getImageCache(), ":switch_front.png")
+ : Toggle(parent)
+ , bg_on(getImageCache(), ":switch_back_on.png")
+ , bg_off(getImageCache(), ":switch_back_off.png")
+ , knob(getImageCache(), ":switch_front.png")
{
}
@@ -44,7 +44,8 @@ void CheckBox::repaintEvent(RepaintEvent* repaintEvent)
Painter p(*this);
p.clear();
- p.drawImage(0, (knob.height() - bg_on.height()) / 2, state ? bg_on : bg_off);
+ p.drawImage(
+ 0, (knob.height() - bg_on.height()) / 2, state ? bg_on : bg_off);
if(clicked)
{