diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-08-28 09:51:00 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-08-28 09:51:00 +0200 |
commit | 4002a09756926e0981d20ce95c3cfbcfb02c00c2 (patch) | |
tree | c6b03a92a24291f9457b0dc4406dce02b8b1323d /framework/qml/ComboBox.qml | |
parent | 96cbe7cfbe70953d60fa867b87ee5ae395911b33 (diff) | |
download | kube-4002a09756926e0981d20ce95c3cfbcfb02c00c2.tar.gz kube-4002a09756926e0981d20ce95c3cfbcfb02c00c2.zip |
make combobox work again
Diffstat (limited to 'framework/qml/ComboBox.qml')
-rw-r--r-- | framework/qml/ComboBox.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/qml/ComboBox.qml b/framework/qml/ComboBox.qml index 82416175..71c9bcc3 100644 --- a/framework/qml/ComboBox.qml +++ b/framework/qml/ComboBox.qml | |||
@@ -83,5 +83,14 @@ T.ComboBox { | |||
83 | text: root.textRole ? (Array.isArray(root.model) ? modelData[root.textRole] : model[root.textRole]) : modelData | 83 | text: root.textRole ? (Array.isArray(root.model) ? modelData[root.textRole] : model[root.textRole]) : modelData |
84 | color: root.highlightedIndex === index ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor | 84 | color: root.highlightedIndex === index ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor |
85 | } | 85 | } |
86 | |||
87 | MouseArea { | ||
88 | anchors.fill: parent | ||
89 | |||
90 | onClicked: { | ||
91 | root.currentIndex = model.index | ||
92 | popup.close() | ||
93 | } | ||
94 | } | ||
86 | } | 95 | } |
87 | } | 96 | } |