diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-03 20:31:10 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-03 20:31:10 +0100 |
commit | dd09ca9ef4bb9780b953d6dd2999dbefe50bd1ff (patch) | |
tree | dfcef3671c7f36d762f74b4226477fe6978688f2 /applications/kube-mail/package/contents/ui/main.qml | |
parent | dea41f0345188d776522e5b91ba25d25c418e581 (diff) | |
download | kube-dd09ca9ef4bb9780b953d6dd2999dbefe50bd1ff.tar.gz kube-dd09ca9ef4bb9780b953d6dd2999dbefe50bd1ff.zip |
Instead of using controllers, directly use the models
...and connect components via properties
Diffstat (limited to 'applications/kube-mail/package/contents/ui/main.qml')
-rw-r--r-- | applications/kube-mail/package/contents/ui/main.qml | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/applications/kube-mail/package/contents/ui/main.qml b/applications/kube-mail/package/contents/ui/main.qml index 88d2edde..200328f3 100644 --- a/applications/kube-mail/package/contents/ui/main.qml +++ b/applications/kube-mail/package/contents/ui/main.qml | |||
@@ -20,8 +20,6 @@ import QtQuick.Controls 1.3 | |||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import org.kde.plasma.components 2.0 as PlasmaComponents | 21 | import org.kde.plasma.components 2.0 as PlasmaComponents |
22 | 22 | ||
23 | import org.kde.akonadi2.mail 1.0 as Mail | ||
24 | |||
25 | ApplicationWindow { | 23 | ApplicationWindow { |
26 | id: app | 24 | id: app |
27 | 25 | ||
@@ -32,19 +30,6 @@ ApplicationWindow { | |||
32 | 30 | ||
33 | visible: true | 31 | visible: true |
34 | 32 | ||
35 | //Controller: | ||
36 | Mail.FolderList { | ||
37 | id: folderList | ||
38 | } | ||
39 | |||
40 | Mail.MailList { | ||
41 | id: mailList | ||
42 | } | ||
43 | |||
44 | Mail.SingleMail{ | ||
45 | id: singleMail | ||
46 | } | ||
47 | |||
48 | //UI | 33 | //UI |
49 | toolBar: ToolBar { | 34 | toolBar: ToolBar { |
50 | 35 | ||
@@ -111,6 +96,7 @@ ApplicationWindow { | |||
111 | 96 | ||
112 | MailListView { | 97 | MailListView { |
113 | id: mailListView | 98 | id: mailListView |
99 | parentFolder: folderListView.currentFolder | ||
114 | 100 | ||
115 | width: unit.size * 80 | 101 | width: unit.size * 80 |
116 | Layout.maximumWidth: unit.size * 250 | 102 | Layout.maximumWidth: unit.size * 250 |
@@ -119,6 +105,7 @@ ApplicationWindow { | |||
119 | 105 | ||
120 | SingleMailView { | 106 | SingleMailView { |
121 | id: mailView | 107 | id: mailView |
108 | mail: mailListView.currentMail | ||
122 | 109 | ||
123 | Layout.fillWidth: true | 110 | Layout.fillWidth: true |
124 | } | 111 | } |