summaryrefslogtreecommitdiffstats
path: root/framework/qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml')
-rw-r--r--framework/qml/MailListView.qml10
-rw-r--r--framework/qml/Messages.qml1
2 files changed, 8 insertions, 3 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index 5adc3f98..570b92f8 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -25,8 +25,6 @@ import org.kube.framework 1.0 as Kube
25 25
26Item { 26Item {
27 id: root 27 id: root
28 //InterfaceProperties
29 property string filterString
30 //Private properties 28 //Private properties
31 property variant parentFolder: null 29 property variant parentFolder: null
32 property bool isDraft : false 30 property bool isDraft : false
@@ -42,6 +40,13 @@ Item {
42 } 40 }
43 } 41 }
44 42
43 Kube.Listener {
44 filter: Kube.Messages.search
45 onMessageReceived: {
46 mailListModel.filter = message.filterString
47 }
48 }
49
45 Kube.MailController { 50 Kube.MailController {
46 id: mailController 51 id: mailController
47 unread: root.isUnread 52 unread: root.isUnread
@@ -111,7 +116,6 @@ Item {
111 model: Kube.MailListModel { 116 model: Kube.MailListModel {
112 id: mailListModel 117 id: mailListModel
113 parentFolder: root.parentFolder 118 parentFolder: root.parentFolder
114 filter: root.filterString
115 } 119 }
116 120
117 delegate: Item { 121 delegate: Item {
diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml
index 3241af0b..b4b170ec 100644
--- a/framework/qml/Messages.qml
+++ b/framework/qml/Messages.qml
@@ -27,5 +27,6 @@ Item {
27 27
28 //Actions 28 //Actions
29 property string moveToTrash: "moveToTrash" 29 property string moveToTrash: "moveToTrash"
30 property string search: "search"
30} 31}
31 32