diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-27 14:49:33 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-27 14:49:33 +0200 |
commit | 30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc (patch) | |
tree | 71e165d46d0cc74f6a6a2cc927f6d1aaef486e7d /framework/qml/AutocompleteLineEdit.qml | |
parent | 322d0276cb88c1d9fc5f1de82b25e8a11a5724ae (diff) | |
download | kube-30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc.tar.gz kube-30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc.zip |
remove kirigami dependency
Diffstat (limited to 'framework/qml/AutocompleteLineEdit.qml')
-rw-r--r-- | framework/qml/AutocompleteLineEdit.qml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/framework/qml/AutocompleteLineEdit.qml b/framework/qml/AutocompleteLineEdit.qml index e7518867..c5f89450 100644 --- a/framework/qml/AutocompleteLineEdit.qml +++ b/framework/qml/AutocompleteLineEdit.qml | |||
@@ -20,7 +20,6 @@ import QtQuick 2.7 | |||
20 | import QtQuick.Controls 2.0 as Controls2 | 20 | import QtQuick.Controls 2.0 as Controls2 |
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | 22 | ||
23 | import org.kde.kirigami 1.0 as Kirigami | ||
24 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
25 | 24 | ||
26 | Kube.TextField { | 25 | Kube.TextField { |
@@ -109,20 +108,26 @@ Kube.TextField { | |||
109 | width: parent.width | 108 | width: parent.width |
110 | interactive: true | 109 | interactive: true |
111 | model: root.model | 110 | model: root.model |
112 | delegate: Kirigami.AbstractListItem { | 111 | //TODO abstract listItem |
112 | delegate: Rectangle { | ||
113 | id: listDelegate | 113 | id: listDelegate |
114 | property string text: model.text | 114 | property string text: model.text |
115 | 115 | ||
116 | width: listView.width | 116 | width: listView.width |
117 | height: root.height | 117 | height: root.height |
118 | 118 | ||
119 | enabled: true | 119 | //enabled: true |
120 | supportsMouseEvents: true | 120 | //supportsMouseEvents: true |
121 | 121 | ||
122 | checked: listView.currentIndex == index | 122 | //checked: listView.currentIndex == index |
123 | onClicked: { | 123 | |
124 | listView.currentIndex = model.index | 124 | MouseArea { |
125 | accept() | 125 | anchors.fill: parent |
126 | |||
127 | onClicked: { | ||
128 | listView.currentIndex = model.index | ||
129 | accept() | ||
130 | } | ||
126 | } | 131 | } |
127 | 132 | ||
128 | //Content | 133 | //Content |