summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
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