diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-06-05 09:54:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-06 09:37:14 +0200 |
commit | 420bb714a8c8ebc67ad958897939d7d96e11806c (patch) | |
tree | a01cca701a930cba8710fd4cb9a5bb9abaaf9054 /src/controls/Slider.qml | |
parent | 0ad4925f94c86dbe75e01d890fdb9fce64ca52fe (diff) | |
download | qtquickcontrols-420bb714a8c8ebc67ad958897939d7d96e11806c.tar.gz |
Expose hovered to our controls and document it consistently
The current solution is messy and we only expose it partially to
some of our styles. I think we should simply expose this to all.
Change-Id: Ia546d5657ea416df99c9d9d92cc714b7f1c928fe
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
Diffstat (limited to 'src/controls/Slider.qml')
-rw-r--r-- | src/controls/Slider.qml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml index e7e49151..64dcfff1 100644 --- a/src/controls/Slider.qml +++ b/src/controls/Slider.qml @@ -108,9 +108,16 @@ Control { /*! \qmlproperty bool Slider::pressed - This property indicates if slider handle is currently being pressed. + This property indicates whether the slider handle is being pressed. */ - property alias pressed: mouseArea.pressed + readonly property alias pressed: mouseArea.pressed + + /*! + \qmlproperty bool Slider::hovered + + This property indicates whether the control is being hovered. + */ + readonly property alias hovered: mouseArea.containsMouse /*! \qmlproperty real Slider::stepSize @@ -145,7 +152,7 @@ Control { /*! \qmlproperty bool Slider::activeFocusOnPress - This property indicates if the Slider should receive active focus when + This property indicates whether the Slider should receive active focus when pressed. */ property bool activeFocusOnPress: false @@ -153,7 +160,7 @@ Control { /*! \qmlproperty bool Slider::tickmarksEnabled - This property indicates if the Slider should display tickmarks + This property indicates whether the Slider should display tickmarks at step intervals. The default value is \c false. @@ -161,9 +168,6 @@ Control { property bool tickmarksEnabled: false /*! \internal */ - property bool __containsMouse: mouseArea.containsMouse - - /*! \internal */ property bool __horizontal: orientation === Qt.Horizontal /*! \internal */ |