summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-09-11 14:23:53 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-09-11 14:23:53 +0200
commit82831c9b847e82bd8410a6a414885268d2253756 (patch)
treed6478b51d622a89fabc139bd8a3a7810d56d3082
parent16bcff91c8f4c9a4a72c1b11ec41fba80bfe85d7 (diff)
downloadkube-82831c9b847e82bd8410a6a414885268d2253756.tar.gz
kube-82831c9b847e82bd8410a6a414885268d2253756.zip
remove ugly search UI
-rw-r--r--components/kube/contents/ui/Kube.qml44
1 files changed, 0 insertions, 44 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml
index 5c3f00eb..1a0847fa 100644
--- a/components/kube/contents/ui/Kube.qml
+++ b/components/kube/contents/ui/Kube.qml
@@ -129,13 +129,6 @@ Controls2.ApplicationWindow {
129 spacing: Kube.Units.largeSpacing - Kube.Units.smallSpacing 129 spacing: Kube.Units.largeSpacing - Kube.Units.smallSpacing
130 130
131 Kube.IconButton { 131 Kube.IconButton {
132 iconName: Kube.Icons.search_inverted
133 onClicked: search.open()
134 activeFocusOnTab: true
135 tooltip: qsTr("search")
136 }
137
138 Kube.IconButton {
139 id: composerButton 132 id: composerButton
140 iconName: Kube.Icons.edit_inverted 133 iconName: Kube.Icons.edit_inverted
141 onClicked: kubeViews.openComposer(false, []) 134 onClicked: kubeViews.openComposer(false, [])
@@ -312,41 +305,4 @@ Controls2.ApplicationWindow {
312 } 305 }
313 } 306 }
314 //END Notification 307 //END Notification
315
316 //BEGIN Search
317 Kube.Popup {
318 id: search
319
320 width: app.width * 0.6
321 height: Kube.Units.gridUnit * 3
322
323 x: app.width * 0.2
324 y: app.height * 0.2
325
326 RowLayout {
327 anchors.centerIn: parent
328 width: parent.width
329
330 Kube.TextField {
331 id: searchField
332 focus: true
333 Layout.fillWidth: true
334 placeholderText: qsTr("Filter... (only applies to the mail list for now)")
335 Keys.onReturnPressed: {
336 Kube.Fabric.postMessage(Kube.Messages.search, {"filterString": searchField.text})
337 search.close()
338 }
339 }
340
341 Kube.Button {
342 text: qsTr("Go")
343
344 onClicked: {
345 Kube.Fabric.postMessage(Kube.Messages.search, {"filterString": searchField.text})
346 search.close()
347 }
348 }
349 }
350 }
351 //END Search
352} 308}