summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoatheme.h
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@nokia.com>2012-02-24 09:17:00 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-06 12:30:16 +0100
commit930a90d97835223587c2c8df1213c64295f3af97 (patch)
tree9a9d3e2fb3fc1e235511ed1a70743d18fc4b2a88 /src/plugins/platforms/cocoa/qcocoatheme.h
parent9d5e721e96f19812a766a4c7d3f8b41f455f507c (diff)
Cocoa: Implement widget palettes.
Add roles to QPLatformTheme::Palette, map QWidget subclasses to those. Port Qt4 widget palette creation code to use the QPLatformTheme::Palette roles. Palette entries are disabled in this commit, this will be fixed later. Change-Id: I07babe3d7c76d306efc4ea4813c7161fdf36227f 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoatheme.h b/src/plugins/platforms/cocoa/qcocoatheme.h
index fa235b6be0..dccda2ce3b 100644
--- a/src/plugins/platforms/cocoa/qcocoatheme.h
+++ b/src/plugins/platforms/cocoa/qcocoatheme.h
@@ -42,8 +42,7 @@
#ifndef QPLATFORMTHEME_COCOA_H
#define QPLATFORMTHEME_COCOA_H
-#include <Cocoa/Cocoa.h>
-
+#include <QtCore/QHash>
#include <QtGui/QPlatformTheme>
QT_BEGIN_NAMESPACE
@@ -66,6 +65,7 @@ public:
QVariant themeHint(ThemeHint hint) const;
private:
mutable QPalette *m_systemPalette;
+ mutable QHash<QPlatformTheme::Palette, QPalette*> m_palettes;
};
QT_END_NAMESPACE