diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-31 10:47:09 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-31 11:47:21 +0200 |
commit | 94355ca15a4d451f4a4b858240e2c1a96e26537b (patch) | |
tree | 6b9209c03a86575a45c92e62a990c60528c02195 /src/gui/kernel/qguiapplication.h | |
parent | 3795e2c7bec9eb50a04d139e45ecc809c4aa37f6 (diff) |
Add a QStyleHints class to QtGui
This class encapsulates platform specific style hints
like doubleClickInterval or cursorFlashTime.
Change-Id: I0d88c47a59d564d8d346642184e5b14e1864cf40
Reviewed-on: http://codereview.qt.nokia.com/3927
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication.h')
-rw-r--r-- | src/gui/kernel/qguiapplication.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/kernel/qguiapplication.h b/src/gui/kernel/qguiapplication.h index 871e314540..c402b9b9dc 100644 --- a/src/gui/kernel/qguiapplication.h +++ b/src/gui/kernel/qguiapplication.h @@ -58,6 +58,7 @@ class QGuiApplicationPrivate; class QPlatformNativeInterface; class QPalette; class QScreen; +class QStyleHints; #if defined(qApp) #undef qApp @@ -73,8 +74,6 @@ class Q_GUI_EXPORT QGuiApplication : public QCoreApplication { Q_OBJECT Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection) - Q_PROPERTY(int doubleClickInterval READ doubleClickInterval WRITE setDoubleClickInterval) - Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval WRITE setKeyboardInputInterval) Q_PROPERTY(bool quitOnLastWindowClosed READ quitOnLastWindowClosed WRITE setQuitOnLastWindowClosed) @@ -108,12 +107,6 @@ public: static Qt::KeyboardModifiers keyboardModifiers(); static Qt::MouseButtons mouseButtons(); - static void setDoubleClickInterval(int); - static int doubleClickInterval(); - - static void setKeyboardInputInterval(int); - static int keyboardInputInterval(); - static void setLayoutDirection(Qt::LayoutDirection direction); static Qt::LayoutDirection layoutDirection(); @@ -123,6 +116,8 @@ public: static QLocale keyboardInputLocale(); static Qt::LayoutDirection keyboardInputDirection(); + QStyleHints *styleHints() const; + static QPlatformNativeInterface *platformNativeInterface(); static void setQuitOnLastWindowClosed(bool quit); |