From cb51ef44e8f3b6461e608171eb3468bc15a696da Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 7 Jun 2016 22:21:47 +0200 Subject: Update all use of thinlistbox_*.png to new TexturedBox. --- plugingui/listboxthin.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'plugingui/listboxthin.h') diff --git a/plugingui/listboxthin.h b/plugingui/listboxthin.h index 1617234..3f429f6 100644 --- a/plugingui/listboxthin.h +++ b/plugingui/listboxthin.h @@ -34,10 +34,14 @@ #include "widget.h" #include "painter.h" #include "listboxbasic.h" +#include "texturedbox.h" -namespace GUI { +namespace GUI +{ -class ListBoxThin : public Widget { +class ListBoxThin + : public Widget +{ public: ListBoxThin(Widget *parent); ~ListBoxThin(); @@ -62,7 +66,10 @@ public: private: ListBoxBasic basic; - Painter::Box box; + TexturedBox box{getImageCache(), ":thinlistbox.png", + 0, 0, // atlas offset (x, y) + 1, 1, 1, // dx1, dx2, dx3 + 1, 1, 1}; // dy1, dy2, dy3 }; } // GUI:: -- cgit v1.2.3