From 74703d12ef6f72a057f11957181b6cf6f4730e2d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 24 Apr 2017 15:34:31 +0200 Subject: Added the Fabric as an in application message bus --- components/kube/contents/ui/Kube.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 8537dba2..cc149e66 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -91,10 +91,12 @@ Controls2.ApplicationWindow { //Controller Kube.FolderController { id: folderController - Binding on folder { - //!! checks for the availability of the type - when: !!folderListView.currentFolder - value: folderListView.currentFolder + } + Kube.Listener { + id: controllerListener + filter: Kube.Messages.folderSelection + onMessageReceived: { + folderController.folder = message.folder } } @@ -266,7 +268,6 @@ Controls2.ApplicationWindow { Kube.MailListView { id: mailListView - parentFolder: accountFolderview.currentFolder width: Kube.Units.gridUnit * 20 height: parent.height Layout.maximumWidth: app.width * 0.4 @@ -276,10 +277,7 @@ Controls2.ApplicationWindow { Kube.ConversationView { id: mailView - mail: mailListView.currentMail Layout.fillWidth: true - hideTrash: !accountFolderview.isTrashFolder - hideNonTrash: accountFolderview.isTrashFolder } } } -- cgit v1.2.3