diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-11-11 14:50:20 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-11 15:22:02 +0100 |
commit | 4e732b87d2b898b9720bd128247beb202fb4aaff (patch) | |
tree | fa338154584c8c6e2feaa7e88b2316793799db51 /src/gui/kernel/qplatformintegration_qpa.h | |
parent | c92d6130fe9df1dc6b42b9d66627cc905e13519b (diff) |
Factor out QPlatformTheme from QPlatformPlugin.
Implement QCocoaPlatformTheme. The menus and dialog
API is moved from the platform to the theme plugin.
(Both APIs contain references to QtWidget classes,
which we are working towards removing.)
The theme plugin is created after the platform
plugin, first by asking the platform plugin, then
by looking for a separate plugin if the platform
does not specify a theme.
Initial-patch-by: Morten Sorvig <msorvig@trolltech.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Change-Id: I2778cdd3a205c4ce35ead93e39fe6b4cd58a39f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.h')
-rw-r--r-- | src/gui/kernel/qplatformintegration_qpa.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.h b/src/gui/kernel/qplatformintegration_qpa.h index 6dd87495b4..d5eb14bc50 100644 --- a/src/gui/kernel/qplatformintegration_qpa.h +++ b/src/gui/kernel/qplatformintegration_qpa.h @@ -63,12 +63,8 @@ class QPlatformOpenGLContext; class QGuiGLFormat; class QAbstractEventDispatcher; class QPlatformInputContext; -class QMenu; -class QMenuBar; -class QPlatformMenu; -class QPlatformMenuBar; class QPlatformAccessibility; -class QPlatformDialogHelper; +class QPlatformTheme; class Q_GUI_EXPORT QPlatformIntegration { @@ -100,15 +96,9 @@ public: virtual QPlatformDrag *drag() const; #endif virtual QPlatformInputContext *inputContext() const; - - virtual QPlatformMenu *createPlatformMenu(QMenu *menu = 0) const; - virtual QPlatformMenuBar *createPlatformMenuBar(QMenuBar *menuBar = 0) const; virtual QPlatformAccessibility *accessibility() const; - virtual bool usePlatformNativeDialog(QDialog *dialog = 0) const; - virtual QPlatformDialogHelper *createPlatformDialogHelper(QDialog *dialog = 0) const; - -// Access native handles. The window handle is already available from Wid; + // Access native handles. The window handle is already available from Wid; virtual QPlatformNativeInterface *nativeInterface() const; enum StyleHint { @@ -121,6 +111,8 @@ public: virtual QVariant styleHint(StyleHint hint) const; + virtual QPlatformTheme *platformTheme() const; + protected: void screenAdded(QPlatformScreen *screen); }; |