diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-05-26 08:10:56 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-05-26 08:10:56 (GMT) |
commit | ff0418c46ffe5270365b6d53298e3ea9014d14ac (patch) | |
tree | 63b1392ba7a6387e402baaf3bd7b858d010f3b17 /src/gui/styles/qs60style_p.h | |
parent | 53b98fea3517c64a7f67693333e3c1af56d42a68 (diff) | |
download | Qt-ff0418c46ffe5270365b6d53298e3ea9014d14ac.zip Qt-ff0418c46ffe5270365b6d53298e3ea9014d14ac.tar.gz Qt-ff0418c46ffe5270365b6d53298e3ea9014d14ac.tar.bz2 |
S60Style: Add reason for clearing style specific caches.
Diffstat (limited to 'src/gui/styles/qs60style_p.h')
-rw-r--r-- | src/gui/styles/qs60style_p.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h index 37c6ec7..ba7dca3 100644 --- a/src/gui/styles/qs60style_p.h +++ b/src/gui/styles/qs60style_p.h @@ -331,6 +331,13 @@ public: SF_StateDisabled = 0x0020, SF_ColorSkinned = 0x0040, }; + + enum CacheClearReason { + CC_UndefinedChange = 0, + CC_LayoutChange, + CC_ThemeChange + }; + Q_DECLARE_FLAGS(SkinElementFlags, SkinElementFlag) // draws skin element @@ -365,7 +372,7 @@ public: QFont s60Font(QS60StyleEnums::FontCategories fontCategory, int pointSize = -1) const; // clears all style caches (fonts, colors, pixmaps) - void clearCaches(); + void clearCaches(CacheClearReason reason = CC_UndefinedChange); // returns themed background texture static QPixmap backgroundTexture(); |