summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Desktop/ComboBoxStyle.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-08-16 13:20:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-17 17:18:02 +0200
commit4c184095d378622fb0c3bb1692b331b3cc04e010 (patch)
treefe097a46b7e451f240a1033fbb37a7b0aace9ca6 /src/controls/Styles/Desktop/ComboBoxStyle.qml
parent9cde5d427a1fc1c2d36b853e1261d08f8dbfa126 (diff)
downloadqtquickcontrols-4c184095d378622fb0c3bb1692b331b3cc04e010.tar.gz
Make ComboBox editable
In addition - Added text completion - Added validator - Added accepted signal - Added activated signal - Added textAt function - Added find function - Added keyboard indexing for non-editable as well Note that we do not support adding values to the model, but leave this up to the user to handle in onAccepted. Change-Id: I1d76fa83aea0e488959c418d22ce7b6027675d86 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/Styles/Desktop/ComboBoxStyle.qml')
-rw-r--r--src/controls/Styles/Desktop/ComboBoxStyle.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/controls/Styles/Desktop/ComboBoxStyle.qml b/src/controls/Styles/Desktop/ComboBoxStyle.qml
index 91a8e82c..e6495ceb 100644
--- a/src/controls/Styles/Desktop/ComboBoxStyle.qml
+++ b/src/controls/Styles/Desktop/ComboBoxStyle.qml
@@ -47,7 +47,7 @@ Style {
property Component panel: Item {
property bool popup: !!styleItem.styleHint("comboboxpopup")
- implicitWidth: 115
+ implicitWidth: 125
implicitHeight: styleItem.implicitHeight
anchors.fill: parent
StyleItem {
@@ -70,7 +70,8 @@ Style {
hints: control.styleHints
properties: {
- "popup": control.__popup
+ "popup": control.__popup,
+ "editable" : control.editable
}
}
}