summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style_p.h
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-05-25 07:16:53 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-05-25 07:16:53 (GMT)
commitfc8673c8a0e3ef11aa1eb8c932e0fcd843c11465 (patch)
tree5f1ce0be9985e9b323c028cd8e9e89f14ac14df3 /src/gui/styles/qs60style_p.h
parentbdab465426195f70f7276a768cea49715d585828 (diff)
downloadQt-fc8673c8a0e3ef11aa1eb8c932e0fcd843c11465.zip
Qt-fc8673c8a0e3ef11aa1eb8c932e0fcd843c11465.tar.gz
Qt-fc8673c8a0e3ef11aa1eb8c932e0fcd843c11465.tar.bz2
S60Style: Reorganize methods in source files to match header file order.
Diffstat (limited to 'src/gui/styles/qs60style_p.h')
-rw-r--r--src/gui/styles/qs60style_p.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h
index cf850c6..1df202d 100644
--- a/src/gui/styles/qs60style_p.h
+++ b/src/gui/styles/qs60style_p.h
@@ -355,14 +355,19 @@ public:
int index, const QStyleOption *option);
// gets state specific color
static QColor stateColor(const QColor &color, const QStyleOption *option);
+ // gets lighter color than base color
static QColor lighterColor(const QColor &baseColor);
+ //deduces if the given widget should have separately themeable background
+ //todo: change method name
static bool isSkinnableDialog(const QWidget *widget);
// gets layout
static const QHash<QStyle::PixelMetric, int> &s60StyleLayout();
QFont s60Font(QS60StyleEnums::FontCategories fontCategory,
int pointSize = -1) const;
+ // clears all style caches (fonts, colors, pixmaps)
void clearCaches();
+ // returns themed background texture
static QPixmap backgroundTexture();
static bool isTouchSupported();
@@ -371,7 +376,7 @@ public:
// calculates average color based on button skin graphics (minus borders).
QColor colorFromFrameGraphics(QS60StylePrivate::SkinFrameElements frame) const;
void setThemePalette(QApplication *application) const;
- void setThemePalette(QWidget *application) const;
+ void setThemePalette(QWidget *widget) const;
void setBackgroundTexture(QApplication *application) const;
static int focusRectPenWidth();
@@ -409,19 +414,20 @@ private:
static void drawFrame(SkinFrameElements frame, QPainter *painter,
const QRect &rect, SkinElementFlags flags = KDefaultSkinElementFlags);
- static QSize partSize(QS60StyleEnums::SkinParts part,
- SkinElementFlags flags = KDefaultSkinElementFlags);
- static QPixmap part(QS60StyleEnums::SkinParts part, const QSize &size,
- SkinElementFlags flags = KDefaultSkinElementFlags);
static QPixmap cachedPart(QS60StyleEnums::SkinParts part, const QSize &size,
SkinElementFlags flags = KDefaultSkinElementFlags);
static QPixmap cachedFrame(SkinFrameElements frame, const QSize &size,
SkinElementFlags flags = KDefaultSkinElementFlags);
+
+ static void refreshUI();
+
+ static QSize partSize(QS60StyleEnums::SkinParts part,
+ SkinElementFlags flags = KDefaultSkinElementFlags);
+ static QPixmap part(QS60StyleEnums::SkinParts part, const QSize &size,
+ SkinElementFlags flags = KDefaultSkinElementFlags);
static QFont s60Font_specific(QS60StyleEnums::FontCategories fontCategory, int pointSize);
- static void refreshUI();
-
static QSize screenSize();
static bool m_backgroundValid;