summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style_p.h
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-06-02 09:42:27 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-06-02 09:42:27 (GMT)
commit17a4589e4d8e5dede5dc786a284115cb822872e0 (patch)
tree2d7f06aeb8832171b19dca7472058bf564c93b40 /src/gui/styles/qs60style_p.h
parenta8890b53f544ca7baccf91916b179e63dfbbda50 (diff)
downloadQt-17a4589e4d8e5dede5dc786a284115cb822872e0.zip
Qt-17a4589e4d8e5dede5dc786a284115cb822872e0.tar.gz
Qt-17a4589e4d8e5dede5dc786a284115cb822872e0.tar.bz2
S60Style: Add support for setting themePalette to QStyleOption. Also, set up themePaletteHash.
Diffstat (limited to 'src/gui/styles/qs60style_p.h')
-rw-r--r--src/gui/styles/qs60style_p.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h
index 8a872fc..88b07b3 100644
--- a/src/gui/styles/qs60style_p.h
+++ b/src/gui/styles/qs60style_p.h
@@ -381,8 +381,13 @@ public:
// calculates average color based on button skin graphics (minus borders).
QColor colorFromFrameGraphics(QS60StylePrivate::SkinFrameElements frame) const;
+
+ //set theme palette for application
void setThemePalette(QApplication *application) const;
- void setThemePalette(QWidget *widget) const;
+ //set theme palette for style option
+ void setThemePalette(QStyleOption *option) const;
+ //access to theme palette
+ static QPalette* themePalette();
static int focusRectPenWidth();
@@ -407,7 +412,6 @@ public:
static QPixmap frame(SkinFrameElements frame, const QSize &size,
SkinElementFlags flags = KDefaultSkinElementFlags);
-
static QPixmap backgroundTexture();
private:
@@ -426,6 +430,13 @@ private:
static void refreshUI();
+ // set S60 font for widget
+ void setFont(QWidget *widget) const;
+ void setThemePalette(QWidget *widget) const;
+ void setThemePalette(QPalette *palette) const;
+ void setThemePaletteHash(QPalette *palette) const;
+ static void QS60StylePrivate::storeThemePalette(QPalette *palette);
+
static QSize partSize(QS60StyleEnums::SkinParts part,
SkinElementFlags flags = KDefaultSkinElementFlags);
static QPixmap part(QS60StyleEnums::SkinParts part, const QSize &size,
@@ -438,6 +449,8 @@ private:
// Contains background texture.
static QPixmap *m_background;
const static SkinElementFlags KDefaultSkinElementFlags;
+ // defined theme palette
+ static QPalette *m_themePalette;
QPalette m_originalPalette;
};