diff options
| author | Friedemann Kleint <[email protected]> | 2011-11-11 14:50:20 +0100 |
|---|---|---|
| committer | Qt by Nokia <[email protected]> | 2011-11-11 15:22:02 +0100 |
| commit | 4e732b87d2b898b9720bd128247beb202fb4aaff (patch) | |
| tree | fa338154584c8c6e2feaa7e88b2316793799db51 /src/widgets/dialogs/qdialog.cpp | |
| 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 <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
Change-Id: I2778cdd3a205c4ce35ead93e39fe6b4cd58a39f9
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'src/widgets/dialogs/qdialog.cpp')
| -rw-r--r-- | src/widgets/dialogs/qdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dialogs/qdialog.cpp b/src/widgets/dialogs/qdialog.cpp index a0b0cdc5647..363d3bf5928 100644 --- a/src/widgets/dialogs/qdialog.cpp +++ b/src/widgets/dialogs/qdialog.cpp @@ -66,8 +66,8 @@ QPlatformDialogHelper *QDialogPrivate::platformHelper() const if (!m_platformHelperCreated) { QDialogPrivate *ncThis = const_cast<QDialogPrivate *>(this); m_platformHelperCreated = true; - m_platformHelper = QGuiApplicationPrivate::platformIntegration() - ->createPlatformDialogHelper(ncThis->q_func()); + m_platformHelper = QGuiApplicationPrivate::platformTheme() + ->createPlatformDialogHelper(ncThis->q_func()); if (m_platformHelper) ncThis->initHelper(m_platformHelper); } |
