diff options
Diffstat (limited to 'framework')
-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 | } |