summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstylehints.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-01-02 15:02:28 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-01-13 13:05:48 +0100
commit9d5b1fd151581209a36844da4fe89ccef5791115 (patch)
treef4f174fd2e398a00010f8fc41c27eb3ebf6e0b58 /src/gui/kernel/qstylehints.h
parent75f2a0b4ef721b135c42d8e08d70bbdd0ed04c4c (diff)
Make QStyleHints usable in QML
Change-Id: Ia8f143d12c754b4af4a29bb9542cd050b5ae2ab0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/gui/kernel/qstylehints.h')
-rw-r--r--src/gui/kernel/qstylehints.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gui/kernel/qstylehints.h b/src/gui/kernel/qstylehints.h
index 09807ecb24..de7a68018a 100644
--- a/src/gui/kernel/qstylehints.h
+++ b/src/gui/kernel/qstylehints.h
@@ -46,6 +46,21 @@ class Q_GUI_EXPORT QStyleHints : public QObject
{
Q_OBJECT
Q_DECLARE_PRIVATE(QStyleHints)
+ Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL)
+ Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false FINAL)
+ Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false FINAL)
+ Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval NOTIFY keyboardInputIntervalChanged FINAL)
+ Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval NOTIFY mouseDoubleClickIntervalChanged FINAL)
+ Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval STORED false FINAL)
+ Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false FINAL)
+ Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false FINAL)
+ Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false FINAL)
+ Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false FINAL)
+ Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
+ Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
+ Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false FINAL)
+ Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false FINAL)
+
public:
void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
int mouseDoubleClickInterval() const;
@@ -67,6 +82,13 @@ public:
bool useRtlExtensions() const;
bool setFocusOnTouchRelease() const;
+Q_SIGNALS:
+ void cursorFlashTimeChanged(int cursorFlashTime);
+ void keyboardInputIntervalChanged(int keyboardInputInterval);
+ void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
+ void startDragDistanceChanged(int startDragDistance);
+ void startDragTimeChanged(int startDragTime);
+
private:
friend class QGuiApplication;
QStyleHints();