diff options
Diffstat (limited to 'views/conversation/qml/View.qml')
-rw-r--r-- | views/conversation/qml/View.qml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/conversation/qml/View.qml b/views/conversation/qml/View.qml index 7f1c78bb..5f0d362d 100644 --- a/views/conversation/qml/View.qml +++ b/views/conversation/qml/View.qml | |||
@@ -109,6 +109,18 @@ FocusScope { | |||
109 | anchors.fill: parent | 109 | anchors.fill: parent |
110 | activeFocusOnTab: true | 110 | activeFocusOnTab: true |
111 | Layout.minimumWidth: Kube.Units.gridUnit * 10 | 111 | Layout.minimumWidth: Kube.Units.gridUnit * 10 |
112 | Kube.Listener { | ||
113 | filter: Kube.Messages.folderSelection | ||
114 | onMessageReceived: mailListView.parentFolder = message.folder | ||
115 | } | ||
116 | |||
117 | Kube.Listener { | ||
118 | filter: Kube.Messages.search | ||
119 | onMessageReceived: mailListView.showFilter = true | ||
120 | } | ||
121 | onCurrentMailChanged: { | ||
122 | Kube.Fabric.postMessage(Kube.Messages.mailSelection, {"mail": currentMail}) | ||
123 | } | ||
112 | } | 124 | } |
113 | } | 125 | } |
114 | 126 | ||
@@ -118,6 +130,21 @@ FocusScope { | |||
118 | Layout.fillWidth: true | 130 | Layout.fillWidth: true |
119 | Layout.fillHeight: parent.height | 131 | Layout.fillHeight: parent.height |
120 | activeFocusOnTab: true | 132 | activeFocusOnTab: true |
133 | Kube.Listener { | ||
134 | filter: Kube.Messages.mailSelection | ||
135 | onMessageReceived: { | ||
136 | mailView.mail = message.mail | ||
137 | } | ||
138 | } | ||
139 | |||
140 | Kube.Listener { | ||
141 | filter: Kube.Messages.folderSelection | ||
142 | onMessageReceived: { | ||
143 | mailView.hideTrash = !message.trash | ||
144 | mailView.hideNonTrash = message.trash | ||
145 | } | ||
146 | } | ||
147 | |||
121 | } | 148 | } |
122 | } | 149 | } |
123 | } | 150 | } |