summaryrefslogtreecommitdiffstats
path: root/src/private/AbstractCheckable.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-06-05 09:54:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-06 09:37:14 +0200
commit420bb714a8c8ebc67ad958897939d7d96e11806c (patch)
treea01cca701a930cba8710fd4cb9a5bb9abaaf9054 /src/private/AbstractCheckable.qml
parent0ad4925f94c86dbe75e01d890fdb9fce64ca52fe (diff)
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/private/AbstractCheckable.qml')
-rw-r--r--src/private/AbstractCheckable.qml17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/private/AbstractCheckable.qml b/src/private/AbstractCheckable.qml
index ba203e4dd..02348b717 100644
--- a/src/private/AbstractCheckable.qml
+++ b/src/private/AbstractCheckable.qml
@@ -69,10 +69,16 @@ Control {
/*!
\qmlproperty bool AbstractCheckable::pressed
- This property is \c true if the control is pressed.
+ This property is \c true if the control is being pressed.
Set this property to manually invoke a mouse click.
*/
- readonly property alias pressed: mouseArea.effectivePressed
+ property alias pressed: mouseArea.effectivePressed
+
+ /*! \qmlproperty bool AbstractCheckcable::hovered
+
+ This property indicates whether the control is being hovered.
+ */
+ readonly property alias hovered: mouseArea.containsMouse
/*!
This property is \c true if the control is checked.
@@ -99,13 +105,6 @@ Control {
/*! \internal */
property var __cycleStatesHandler: cycleRadioButtonStates
- /*! \internal
-
- This property is \c true if the control currently contains the
- mouse cursor.
- */
- readonly property alias __containsMouse: mouseArea.containsMouse
-
activeFocusOnTab: true
MouseArea {