diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-07-08 11:46:57 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-07-09 14:43:54 +0200 |
commit | f2a3019e4332b756b5b27092768bf4039dca7c7a (patch) | |
tree | 3b886295e05fa17cc1b734aa9c934f45ccceb98b | |
parent | ffe482f63e304112dcf31ca76a0083ba6fed99fb (diff) | |
download | qtquickcontrols-f2a3019e4332b756b5b27092768bf4039dca7c7a.tar.gz |
Fix editable ComboBox mouse cursor
Change-Id: I6866686b09348f486c6629917d271b640b1b734e
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r-- | src/controls/ComboBox.qml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml index a4a97c0b..08e1d07f 100644 --- a/src/controls/ComboBox.qml +++ b/src/controls/ComboBox.qml @@ -162,7 +162,7 @@ Control { This property indicates whether the control is being hovered. */ - readonly property alias hovered: mouseArea.containsMouse + readonly property bool hovered: mouseArea.containsMouse || cursorArea.containsMouse /*! \qmlproperty int ComboBox::count \since QtQuick.Controls 1.1 @@ -461,6 +461,14 @@ Control { } prevText = text } + + MouseArea { + id: cursorArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.IBeamCursor + acceptedButtons: Qt.NoButton + } } Binding { |