diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 15:34:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 15:34:31 +0200 |
commit | 74703d12ef6f72a057f11957181b6cf6f4730e2d (patch) | |
tree | a9126fd02863243e26fdc2881b3910b163d59c87 /framework/qml/ConversationView.qml | |
parent | 68ed477e34756beb5b152f8077c2e2527bba4708 (diff) | |
download | kube-74703d12ef6f72a057f11957181b6cf6f4730e2d.tar.gz kube-74703d12ef6f72a057f11957181b6cf6f4730e2d.zip |
Added the Fabric as an in application message bus
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r-- | framework/qml/ConversationView.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index bdcd0aa0..85712a5a 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -37,6 +37,22 @@ Rectangle { | |||
37 | property bool hideTrash: true; | 37 | property bool hideTrash: true; |
38 | property bool hideNonTrash: false; | 38 | property bool hideNonTrash: false; |
39 | 39 | ||
40 | |||
41 | Kube.Listener { | ||
42 | filter: Kube.Messages.mailSelection | ||
43 | onMessageReceived: { | ||
44 | root.mail = message.mail | ||
45 | } | ||
46 | } | ||
47 | |||
48 | Kube.Listener { | ||
49 | filter: Kube.Messages.folderSelection | ||
50 | onMessageReceived: { | ||
51 | root.hideTrash = !message.trash | ||
52 | root.hideNonTrash = message.trash | ||
53 | } | ||
54 | } | ||
55 | |||
40 | onCurrentIndexChanged: { | 56 | onCurrentIndexChanged: { |
41 | markAsReadTimer.restart(); | 57 | markAsReadTimer.restart(); |
42 | } | 58 | } |