summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-21 13:35:11 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-23 15:43:23 +0100
commit7fbd3cbdadb5bfb509b9bc396d949fe38a067072 (patch)
tree7d11120d4eb69aaa42039181d3b35a71b8ec0c9e /framework/qml/ConversationView.qml
parent46486a878310df55b686b8fbc2b6aaf35d613da7 (diff)
downloadkube-7fbd3cbdadb5bfb509b9bc396d949fe38a067072.tar.gz
kube-7fbd3cbdadb5bfb509b9bc396d949fe38a067072.zip
Search in conversationview
...via syntax highligher or search api.
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r--framework/qml/ConversationView.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml
index 2dab92ba..0fd76f8f 100644
--- a/framework/qml/ConversationView.qml
+++ b/framework/qml/ConversationView.qml
@@ -31,6 +31,12 @@ FocusScope {
31 property variant mail; 31 property variant mail;
32 property bool hideTrash: true; 32 property bool hideTrash: true;
33 property bool hideNonTrash: false; 33 property bool hideNonTrash: false;
34 property string searchString: ""
35
36 Kube.Listener {
37 filter: Kube.Messages.searchString
38 onMessageReceived: root.searchString = message.searchString
39 }
34 40
35 Rectangle { 41 Rectangle {
36 anchors.fill: parent 42 anchors.fill: parent
@@ -46,6 +52,7 @@ FocusScope {
46 left: parent.left 52 left: parent.left
47 right: parent.right 53 right: parent.right
48 } 54 }
55
49 //Shrink the listview if the content doesn't fill the full height, so the email appears on top instead of on the bottom. 56 //Shrink the listview if the content doesn't fill the full height, so the email appears on top instead of on the bottom.
50 height: Math.min(contentHeight, parent.height) 57 height: Math.min(contentHeight, parent.height)
51 58
@@ -98,6 +105,7 @@ FocusScope {
98 sent: model.sent 105 sent: model.sent
99 incomplete: model.incomplete 106 incomplete: model.incomplete
100 current: delegateRoot.isCurrentItem 107 current: delegateRoot.isCurrentItem
108 searchString: root.searchString
101 } 109 }
102 } 110 }
103 111