summaryrefslogtreecommitdiffstats
path: root/src/plugins/platformthemes/gtk2
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-11-12 15:36:50 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-15 16:44:03 +0100
commite3383ab646381cfca217af5ea6b059e59a837edd (patch)
treed77b3c3b0e5f3921d7101db3550834148e58e22f /src/plugins/platformthemes/gtk2
parent3e88ebc43dc1ca68f9f521f34584b4374452df9b (diff)
GTK theme should not claim to provide a native MessageDialog yet
It was providing all possible types, but now MessageDialog is a new native dialog type, and only on Android at the moment. Task-number: QTBUG-34784 Change-Id: I2fb288c8d5e176ca4dafbbc310de2f29bbcfc000 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/plugins/platformthemes/gtk2')
-rw-r--r--src/plugins/platformthemes/gtk2/qgtk2theme.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/platformthemes/gtk2/qgtk2theme.cpp b/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
index f069d9f97c..812f4bc000 100644
--- a/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
+++ b/src/plugins/platformthemes/gtk2/qgtk2theme.cpp
@@ -87,8 +87,16 @@ QVariant QGtk2Theme::themeHint(QPlatformTheme::ThemeHint hint) const
bool QGtk2Theme::usePlatformNativeDialog(DialogType type) const
{
- Q_UNUSED(type);
- return true;
+ switch (type) {
+ case ColorDialog:
+ return true;
+ case FileDialog:
+ return true;
+ case FontDialog:
+ return true;
+ default:
+ return false;
+ }
}
QPlatformDialogHelper *QGtk2Theme::createPlatformDialogHelper(DialogType type) const