From f2a3019e4332b756b5b27092768bf4039dca7c7a Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 8 Jul 2014 11:46:57 +0200 Subject: Fix editable ComboBox mouse cursor Change-Id: I6866686b09348f486c6629917d271b640b1b734e Reviewed-by: Mitch Curtis --- src/controls/ComboBox.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1