From 4e732b87d2b898b9720bd128247beb202fb4aaff Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 11 Nov 2011 14:50:20 +0100 Subject: 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 Reviewed-by: Friedemann Kleint Change-Id: I2778cdd3a205c4ce35ead93e39fe6b4cd58a39f9 Reviewed-by: Friedemann Kleint --- src/gui/kernel/qguiapplication_p.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gui/kernel/qguiapplication_p.h') diff --git a/src/gui/kernel/qguiapplication_p.h b/src/gui/kernel/qguiapplication_p.h index bd42fa1904..af1c71d478 100644 --- a/src/gui/kernel/qguiapplication_p.h +++ b/src/gui/kernel/qguiapplication_p.h @@ -51,7 +51,8 @@ #include #include "private/qwindowsysteminterface_qpa_p.h" -#include "QtGui/qplatformintegration_qpa.h" +#include +#include QT_BEGIN_HEADER @@ -81,6 +82,12 @@ public: static QPlatformIntegration *platformIntegration() { return platform_integration; } + static QPlatformTheme *platform_theme; + + static QPlatformTheme *platformTheme() + { return platform_theme; } + + enum KeyPlatform { KB_Win = 1, KB_Mac = 2, -- cgit v1.2.3