From c73f9e2632f9614bba748aed857e2a648126a963 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 20 Apr 2017 20:16:48 +0200 Subject: Change resource paths to be relative to the plugingui folder instead of the resources folder. Make rcgen run atomatically to re-generate resource_data.cc if one of the resource files changes. --- plugingui/powerbutton.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/powerbutton.h') diff --git a/plugingui/powerbutton.h b/plugingui/powerbutton.h index 47b3ca1..1894967 100644 --- a/plugingui/powerbutton.h +++ b/plugingui/powerbutton.h @@ -43,10 +43,10 @@ protected: virtual void repaintEvent(RepaintEvent* repaintEvent) override; private: - Texture on{getImageCache(), ":bypass_button.png", 0, 0, 16, 16}; - Texture on_clicked{getImageCache(), ":bypass_button.png", 16, 0, 16, 16}; - Texture off{getImageCache(), ":bypass_button.png", 32, 0, 16, 16}; - Texture off_clicked{getImageCache(), ":bypass_button.png", 48, 0, 16, 16}; + Texture on{getImageCache(), ":resources/bypass_button.png", 0, 0, 16, 16}; + Texture on_clicked{getImageCache(), ":resources/bypass_button.png", 16, 0, 16, 16}; + Texture off{getImageCache(), ":resources/bypass_button.png", 32, 0, 16, 16}; + Texture off_clicked{getImageCache(), ":resources/bypass_button.png", 48, 0, 16, 16}; }; } // GUI:: -- cgit v1.2.3