From fc3207dfe1b615a856b6ad8eef22a8774e4a17f4 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 12 Jul 2012 09:54:50 +0200 Subject: Mirror potentially themeable style hints in QPlatformTheme. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, most of the QStyleHint-values are potentially configureable by the user in certain desktop environments. Add them to the QPlatformTheme and query the theme first. Keep the values in QPlatformIntegration such that simple integrations that do not implement themes are not forced to implement them to change the values. Change-Id: I15742a5968df0ad5d7398cceae640dc7e541da52 Reviewed-by: David Faure Reviewed-by: Jørgen Lind --- src/gui/kernel/qplatformtheme.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/kernel/qplatformtheme.h') diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h index 5ead94cd17..107c57b42d 100644 --- a/src/gui/kernel/qplatformtheme.h +++ b/src/gui/kernel/qplatformtheme.h @@ -72,6 +72,14 @@ class Q_GUI_EXPORT QPlatformTheme { public: enum ThemeHint { + CursorFlashTime, + KeyboardInputInterval, + MouseDoubleClickInterval, + StartDragDistance, + StartDragTime, + KeyboardAutoRepeatRate, + PasswordMaskDelay, + StartDragVelocity, TextCursorWidth, DropShadow, MaximumScrollBarDragDistance, @@ -180,6 +188,8 @@ public: virtual const QFont *font(Font type = SystemFont) const; virtual QVariant themeHint(ThemeHint hint) const; + + static QVariant defaultThemeHint(ThemeHint hint); }; QT_END_NAMESPACE -- cgit v1.2.3