summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine/default/themelegacy.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2014-03-25 13:27:22 +0900
committerMichele Calgaro <[email protected]>2014-03-25 13:27:22 +0900
commite861c6188bc38088422b32b505daff627915d53b (patch)
treeebdd3cd02aabbe185ccca63a7d6abc408e8c523d /ksplashml/themeengine/default/themelegacy.h
parent504dfac148d5fdaaa88c7b932284329bc5d4e6a8 (diff)
downloadtdebase-e861c6188bc38088422b32b505daff627915d53b.tar.gz
tdebase-e861c6188bc38088422b32b505daff627915d53b.zip
Fixed KSplash icon flashing position problem for 'default' theme engine.
Removed nasty hardcoded hack and added 'Icon Offsets' option to Theme.rc file.
Diffstat (limited to 'ksplashml/themeengine/default/themelegacy.h')
-rw-r--r--ksplashml/themeengine/default/themelegacy.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ksplashml/themeengine/default/themelegacy.h b/ksplashml/themeengine/default/themelegacy.h
index 0f73e80c1..1f56d05b0 100644
--- a/ksplashml/themeengine/default/themelegacy.h
+++ b/ksplashml/themeengine/default/themelegacy.h
@@ -19,6 +19,9 @@
#include <tqwidget.h>
#include "themeengine.h"
+
+static const int MAX_ICONS=7;
+
class TQPixmap;
class TQTimer;
@@ -88,8 +91,9 @@ private:
TQString _findPicture( const TQString &pic );
// Configurable Options
- bool mIconsFlashing;
+ bool mIconsFlashing;
TQColor mLabelForeground;
+ int mIconOffsets[MAX_ICONS];
// Internals.
KProgress *mProgressBar;