diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-10 15:53:06 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-10 15:53:06 +0200 |
commit | df10583b42f49a58d27dd6dd322f22fd88ce1418 (patch) | |
tree | 34c2dc39c47b60ebc28130985ac976172da478ad /components/package/contents/ui/MailListView.qml | |
parent | 6e76e328b2adbc20bd2da6628a7f57aaa7afe5b1 (diff) | |
download | kube-df10583b42f49a58d27dd6dd322f22fd88ce1418.tar.gz kube-df10583b42f49a58d27dd6dd322f22fd88ce1418.zip |
Support for loading drafts
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 12d6c705..9caaa9ce 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -29,6 +29,7 @@ Controls.ScrollView { | |||
29 | id: root | 29 | id: root |
30 | property variant parentFolder | 30 | property variant parentFolder |
31 | property variant currentMail | 31 | property variant currentMail |
32 | property bool isDraft : false | ||
32 | 33 | ||
33 | ListView { | 34 | ListView { |
34 | id: listView | 35 | id: listView |
@@ -69,6 +70,12 @@ Controls.ScrollView { | |||
69 | when: listView.currentIndex == index | 70 | when: listView.currentIndex == index |
70 | value: model.domainObject | 71 | value: model.domainObject |
71 | } | 72 | } |
73 | QtQml.Binding { | ||
74 | target: root | ||
75 | property: "isDraft" | ||
76 | when: listView.currentIndex == index | ||
77 | value: model.draft | ||
78 | } | ||
72 | 79 | ||
73 | RowLayout { | 80 | RowLayout { |
74 | 81 | ||