summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 21:37:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 21:37:26 +0200
commitd5ed45c25651f04dc3972047d279c8eeb4ca9e51 (patch)
treec9a424cfca2af7922a981e5e89bf3d24725aadea /plugingui/checkbox.cc
parent195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff)
New TexturedBox class.
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index 6419fc3..a218d44 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -28,17 +28,14 @@
#include "painter.h"
-#include <stdio.h>
-
-namespace GUI {
+namespace GUI
+{
CheckBox::CheckBox(Widget* parent)
: Widget(parent)
- , bg_on(":switch_back_on.png")
- , bg_off(":switch_back_off.png")
- , knob(":switch_front.png")
- , state(false)
- , middle(false)
+ , bg_on(getImageCache(), ":switch_back_on.png")
+ , bg_off(getImageCache(), ":switch_back_off.png")
+ , knob(getImageCache(), ":switch_front.png")
{
}