diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-07-08 11:53:41 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-07-08 14:47:58 +0200 |
commit | 89fceac599444e1573cc535a26277d810d663ad0 (patch) | |
tree | 79ea41bd38b140186641f32e2ffd6daadd9cd91b | |
parent | 9b9b568137aa9eb6ff2508ac14e84a2c0b1825f0 (diff) | |
download | qtquickcontrols-89fceac599444e1573cc535a26277d810d663ad0.tar.gz |
Fix SpinBox mouse cursor
Change-Id: I0b0fe9c7b7ddd9ba01035fd2ca70c7b11433ec90
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
-rw-r--r-- | src/controls/SpinBox.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index c0f331b3..c2712dd8 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -164,7 +164,8 @@ Control { This property indicates whether the control is being hovered. */ - readonly property alias hovered: mouseArea.containsMouse + readonly property bool hovered: mouseArea.containsMouse || cursorArea.containsMouse + || mouseUp.containsMouse || mouseDown.containsMouse /*! \qmlsignal SpinBox::editingFinished() @@ -290,6 +291,14 @@ Control { function selectValue() { select(prefix.length, text.length - suffix.length) } + + MouseArea { + id: cursorArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.IBeamCursor + acceptedButtons: Qt.NoButton + } } // Spinbox increment button |