From 4002a09756926e0981d20ce95c3cfbcfb02c00c2 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 28 Aug 2017 09:51:00 +0200 Subject: make combobox work again --- framework/qml/ComboBox.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework') 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 { text: root.textRole ? (Array.isArray(root.model) ? modelData[root.textRole] : model[root.textRole]) : modelData color: root.highlightedIndex === index ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor } + + MouseArea { + anchors.fill: parent + + onClicked: { + root.currentIndex = model.index + popup.close() + } + } } } -- cgit v1.2.3