summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoatheme.h
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@nokia.com>2012-02-23 08:50:28 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-01 13:55:49 +0100
commit30974151c159d42d194b5516efc8ca8d7e611f10 (patch)
tree35c8440e312fc654f9c8c5e8bcfdeaf045608669 /src/plugins/platforms/cocoa/qcocoatheme.h
parentd19d25a68bd92dc6a1b55de0a5c7e0fcce55299b (diff)
Cocoa: Implement QPlatformTheme:palette()
Causes a new test failure in QGraphicsProxyWidget::updateAndDelete, expand the EXPECT_FAIL to cover that one as well. Change-Id: If9da757206445d17510c4fac82a559de7b8c0563 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoatheme.h')
-rw-r--r--src/plugins/platforms/cocoa/qcocoatheme.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoatheme.h b/src/plugins/platforms/cocoa/qcocoatheme.h
index a7dc973937..fa235b6be0 100644
--- a/src/plugins/platforms/cocoa/qcocoatheme.h
+++ b/src/plugins/platforms/cocoa/qcocoatheme.h
@@ -48,6 +48,7 @@
QT_BEGIN_NAMESPACE
+class QPalette;
class QCocoaTheme : public QPlatformTheme
{
public:
@@ -60,7 +61,11 @@ public:
bool usePlatformNativeDialog(DialogType dialogType) const;
QPlatformDialogHelper *createPlatformDialogHelper(DialogType dialogType) const;
+ const QPalette *palette(Palette type = SystemPalette) const;
+
QVariant themeHint(ThemeHint hint) const;
+private:
+ mutable QPalette *m_systemPalette;
};
QT_END_NAMESPACE