summaryrefslogtreecommitdiff
path: root/src/controls/ComboBox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-09 18:40:02 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-09 18:40:02 +0200
commit223ec0f7827fde5609d7d48237a95e9b7c9563e1 (patch)
treeaf8420daede7cd8208adda1c8cb6381b062bdc83 /src/controls/ComboBox.qml
parenta25023d56f16d8d3c08cc60f7059cf10a3b8a5ba (diff)
parentf2a3019e4332b756b5b27092768bf4039dca7c7a (diff)
downloadqtquickcontrols-223ec0f7827fde5609d7d48237a95e9b7c9563e1.tar.gz
Merge remote-tracking branch 'origin/5.3' into dev
Conflicts: src/controls/ToolBar.qml Change-Id: I5510496219a4ebe8bfced4192307219238ca9bb6
Diffstat (limited to 'src/controls/ComboBox.qml')
-rw-r--r--src/controls/ComboBox.qml15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 44ae2433..d9a9aaa7 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -49,7 +49,10 @@ import QtQuick.Controls.Private 1.0
\ingroup controls
\brief Provides a drop-down list functionality.
- Add items to the comboBox by assigning it a ListModel, or a list of strings to the \l model property.
+ \image combobox.png
+
+ Add items to the ComboBox by assigning it a ListModel, or a list of strings
+ to the \l model property.
\qml
ComboBox {
@@ -159,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
@@ -459,6 +462,14 @@ Control {
}
prevText = text
}
+
+ MouseArea {
+ id: cursorArea
+ anchors.fill: parent
+ hoverEnabled: true
+ cursorShape: Qt.IBeamCursor
+ acceptedButtons: Qt.NoButton
+ }
}
Binding {