summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformtheme.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-12 09:54:50 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-18 08:18:46 +0200
commitfc3207dfe1b615a856b6ad8eef22a8774e4a17f4 (patch)
treeb4ad3d890ad8064cbdd2bceaf69274bcdcf360ad /src/gui/kernel/qplatformtheme.h
parent26318a8cb2115e0fddb119b203217a52dc8e98a2 (diff)
Mirror potentially themeable style hints in QPlatformTheme.
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 <faure@kde.org> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformtheme.h')
-rw-r--r--src/gui/kernel/qplatformtheme.h10
1 files changed, 10 insertions, 0 deletions
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