From 1baf293548aa859e922dface4cd7b4bac5754b3c Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 22 Aug 2013 14:25:46 +0200 Subject: Move SnapToDefaultButton from QPlatformDialogHelper to QPlatformTheme Since QPlatformTheme covers all dialogs whereas QPlatformDialogHelper is really only for the native dialogs then the SnapToDefaultButton hint is moved as it has relevance for all dialogs Task-number: QTBUG-32631 Change-Id: I1dce0bb4abcd4cfd39c4a199a33fc7078176ab4b Reviewed-by: Friedemann Kleint --- src/gui/kernel/qplatformtheme.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/kernel/qplatformtheme.cpp') diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp index 5c3673890a..18ac9dc088 100644 --- a/src/gui/kernel/qplatformtheme.cpp +++ b/src/gui/kernel/qplatformtheme.cpp @@ -138,6 +138,9 @@ QT_BEGIN_NAMESPACE \value TabAllWidgets (bool) Whether tab navigation should go through all the widgets or components, or just through text boxes and list views. This is mostly a Mac feature. + \value DialogSnapToDefaultButton (bool) Whether the mouse should snap to the default button when a dialog + becomes visible. + \sa themeHint(), QStyle::pixelMetric() */ @@ -455,6 +458,8 @@ QVariant QPlatformTheme::defaultThemeHint(ThemeHint hint) return QVariant(true); case IconPixmapSizes: return QVariant::fromValue(QList()); + case DialogSnapToDefaultButton: + return QVariant(false); } return QVariant(); } -- cgit v1.2.3