diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-01 17:56:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-01 17:57:01 +0200 |
commit | 8bbf98eb13eeb60e98bc5ff9e116eb35b0e2c081 (patch) | |
tree | f271678723de99da084df2fe1bd561930bcdcd73 /components/mailviewer/qml/MailDataModel.qml | |
parent | 4beb1480954b3a54bf23683e5a0fd2f08624d019 (diff) | |
download | kube-8bbf98eb13eeb60e98bc5ff9e116eb35b0e2c081.tar.gz kube-8bbf98eb13eeb60e98bc5ff9e116eb35b0e2c081.zip |
Prepared auto load images
Diffstat (limited to 'components/mailviewer/qml/MailDataModel.qml')
-rw-r--r-- | components/mailviewer/qml/MailDataModel.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/mailviewer/qml/MailDataModel.qml b/components/mailviewer/qml/MailDataModel.qml index fdc3ce22..099548bf 100644 --- a/components/mailviewer/qml/MailDataModel.qml +++ b/components/mailviewer/qml/MailDataModel.qml | |||
@@ -24,6 +24,7 @@ DelegateModel { | |||
24 | id: root | 24 | id: root |
25 | 25 | ||
26 | property string searchString: "" | 26 | property string searchString: "" |
27 | property bool autoLoadImages: false | ||
27 | 28 | ||
28 | delegate: Item { | 29 | delegate: Item { |
29 | id: partColumn | 30 | id: partColumn |
@@ -132,6 +133,12 @@ DelegateModel { | |||
132 | value: root.searchString | 133 | value: root.searchString |
133 | when: partLoader.status == Loader.Ready | 134 | when: partLoader.status == Loader.Ready |
134 | } | 135 | } |
136 | Binding { | ||
137 | target: partLoader.item | ||
138 | property: "autoLoadImages" | ||
139 | value: root.autoLoadImages | ||
140 | when: partLoader.status == Loader.Ready | ||
141 | } | ||
135 | } | 142 | } |
136 | Component.onCompleted: { | 143 | Component.onCompleted: { |
137 | switch (model.type) { | 144 | switch (model.type) { |