diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-17 11:50:45 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-17 11:50:45 +0200 |
commit | 33a9383df55a39b2ea2322808bb38fbed5db33b1 (patch) | |
tree | 8f28a862554ab038c49ea97986d71b8e99c95dc3 | |
parent | ec48ea0cf01d306c0a9283e485f8c37d7d4d1ebd (diff) | |
download | kube-33a9383df55a39b2ea2322808bb38fbed5db33b1.tar.gz kube-33a9383df55a39b2ea2322808bb38fbed5db33b1.zip |
remove filter bar, allow filter through the global search
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 3 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 11 |
2 files changed, 4 insertions, 10 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index a56838e5..1012d691 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -407,13 +407,14 @@ Controls2.ApplicationWindow { | |||
407 | Controls2.TextField { | 407 | Controls2.TextField { |
408 | id: searchField | 408 | id: searchField |
409 | Layout.fillWidth: true | 409 | Layout.fillWidth: true |
410 | placeholderText: "Search... is not available in this beta" | 410 | placeholderText: "Filter... (only applies to the mail list for now)" |
411 | } | 411 | } |
412 | 412 | ||
413 | Kube.Button { | 413 | Kube.Button { |
414 | text: "Go" | 414 | text: "Go" |
415 | 415 | ||
416 | onClicked: { | 416 | onClicked: { |
417 | mailListView.filterString = searchField.text | ||
417 | search.close() | 418 | search.close() |
418 | } | 419 | } |
419 | } | 420 | } |
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 27fae7c2..fc40074d 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -32,7 +32,7 @@ Item { | |||
32 | property bool isTrash : false | 32 | property bool isTrash : false |
33 | property bool isUnread : false | 33 | property bool isUnread : false |
34 | property int currentIndex | 34 | property int currentIndex |
35 | property string filterString: searchBar.text; | 35 | property string filterString |
36 | 36 | ||
37 | onParentFolderChanged: { | 37 | onParentFolderChanged: { |
38 | currentMail = null | 38 | currentMail = null |
@@ -131,13 +131,6 @@ Item { | |||
131 | } | 131 | } |
132 | } | 132 | } |
133 | 133 | ||
134 | TextField { | ||
135 | id: searchBar | ||
136 | anchors.top: toolbar.bottom | ||
137 | width: parent.width | ||
138 | placeholderText: qsTr("Filter...") | ||
139 | } | ||
140 | |||
141 | Label { | 134 | Label { |
142 | anchors.top: searchBar.bottom | 135 | anchors.top: searchBar.bottom |
143 | visible: listView.count === 0 | 136 | visible: listView.count === 0 |
@@ -148,7 +141,7 @@ Item { | |||
148 | ListView { | 141 | ListView { |
149 | id: listView | 142 | id: listView |
150 | 143 | ||
151 | anchors.top: searchBar.bottom | 144 | anchors.top: toolbar.bottom |
152 | 145 | ||
153 | width: parent.width | 146 | width: parent.width |
154 | height: parent.height - toolbar.height | 147 | height: parent.height - toolbar.height |