From d5ed45c25651f04dc3972047d279c8eeb4ca9e51 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jun 2016 21:37:26 +0200 Subject: New TexturedBox class. --- plugingui/checkbox.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'plugingui/checkbox.cc') 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 - -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") { } -- cgit v1.2.3