summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/controls/ComboBox.qml10
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 {