diff options
-rw-r--r-- | components/mailviewer/qml/ErrorPart.qml | 1 | ||||
-rw-r--r-- | components/mailviewer/qml/HtmlContent.qml | 4 | ||||
-rw-r--r-- | components/mailviewer/qml/MailDataModel.qml | 7 | ||||
-rw-r--r-- | components/mailviewer/qml/MailPart.qml | 1 | ||||
-rw-r--r-- | components/mailviewer/qml/MailViewer.qml | 1 | ||||
-rw-r--r-- | components/mailviewer/qml/TextContent.qml | 1 | ||||
-rw-r--r-- | framework/qml/ConversationView.qml | 2 | ||||
-rw-r--r-- | framework/qml/MailViewer.qml | 1 |
8 files changed, 17 insertions, 1 deletions
diff --git a/components/mailviewer/qml/ErrorPart.qml b/components/mailviewer/qml/ErrorPart.qml index 54332375..1a84ad0b 100644 --- a/components/mailviewer/qml/ErrorPart.qml +++ b/components/mailviewer/qml/ErrorPart.qml | |||
@@ -24,6 +24,7 @@ Item { | |||
24 | property variant errorType | 24 | property variant errorType |
25 | property string errorString | 25 | property string errorString |
26 | property string searchString | 26 | property string searchString |
27 | property bool autoLoadImages: false | ||
27 | height: partListView.height | 28 | height: partListView.height |
28 | width: parent.width | 29 | width: parent.width |
29 | 30 | ||
diff --git a/components/mailviewer/qml/HtmlContent.qml b/components/mailviewer/qml/HtmlContent.qml index 7a904152..aa9c5e9a 100644 --- a/components/mailviewer/qml/HtmlContent.qml +++ b/components/mailviewer/qml/HtmlContent.qml | |||
@@ -27,6 +27,8 @@ Item { | |||
27 | //We have to give it a minimum size so the html content starts to expand | 27 | //We have to give it a minimum size so the html content starts to expand |
28 | property int contentHeight: 10; | 28 | property int contentHeight: 10; |
29 | property string searchString | 29 | property string searchString |
30 | property bool autoLoadImages: false | ||
31 | |||
30 | onSearchStringChanged: { | 32 | onSearchStringChanged: { |
31 | htmlView.findText(searchString) | 33 | htmlView.findText(searchString) |
32 | } | 34 | } |
@@ -75,7 +77,7 @@ Item { | |||
75 | fullScreenSupportEnabled: false | 77 | fullScreenSupportEnabled: false |
76 | errorPageEnabled: false | 78 | errorPageEnabled: false |
77 | //defaultTextEncoding: ??? | 79 | //defaultTextEncoding: ??? |
78 | autoLoadImages: true | 80 | autoLoadImages: root.autoLoadImages |
79 | autoLoadIconsForPage: false | 81 | autoLoadIconsForPage: false |
80 | accelerated2dCanvasEnabled: false | 82 | accelerated2dCanvasEnabled: false |
81 | //The webview should not steal focus | 83 | //The webview should not steal focus |
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) { |
diff --git a/components/mailviewer/qml/MailPart.qml b/components/mailviewer/qml/MailPart.qml index 9a9e1040..15042abf 100644 --- a/components/mailviewer/qml/MailPart.qml +++ b/components/mailviewer/qml/MailPart.qml | |||
@@ -25,6 +25,7 @@ Item { | |||
25 | property alias rootIndex: visualModel.rootIndex | 25 | property alias rootIndex: visualModel.rootIndex |
26 | property alias model: visualModel.model | 26 | property alias model: visualModel.model |
27 | property alias searchString: visualModel.searchString | 27 | property alias searchString: visualModel.searchString |
28 | property alias autoLoadImages: visualModel.autoLoadImages | ||
28 | property variant sender | 29 | property variant sender |
29 | property variant date | 30 | property variant date |
30 | height: childrenRect.height | 31 | height: childrenRect.height |
diff --git a/components/mailviewer/qml/MailViewer.qml b/components/mailviewer/qml/MailViewer.qml index faf3bc61..6210a345 100644 --- a/components/mailviewer/qml/MailViewer.qml +++ b/components/mailviewer/qml/MailViewer.qml | |||
@@ -23,6 +23,7 @@ Item { | |||
23 | property alias rootIndex: visualModel.rootIndex | 23 | property alias rootIndex: visualModel.rootIndex |
24 | property alias model: visualModel.model | 24 | property alias model: visualModel.model |
25 | property alias searchString: visualModel.searchString | 25 | property alias searchString: visualModel.searchString |
26 | property alias autoLoadImages: visualModel.autoLoadImages | ||
26 | height: partListView.height | 27 | height: partListView.height |
27 | 28 | ||
28 | MailDataModel { | 29 | MailDataModel { |
diff --git a/components/mailviewer/qml/TextContent.qml b/components/mailviewer/qml/TextContent.qml index e8a7f6d4..8c246e00 100644 --- a/components/mailviewer/qml/TextContent.qml +++ b/components/mailviewer/qml/TextContent.qml | |||
@@ -27,6 +27,7 @@ Item { | |||
27 | property string content | 27 | property string content |
28 | property bool embedded: true | 28 | property bool embedded: true |
29 | property string type | 29 | property string type |
30 | property bool autoLoadImages: false | ||
30 | 31 | ||
31 | property string searchString | 32 | property string searchString |
32 | property int contentHeight: textEdit.height | 33 | property int contentHeight: textEdit.height |
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index 4df7dfa0..e1e93b66 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -32,6 +32,7 @@ FocusScope { | |||
32 | property bool hideTrash: true; | 32 | property bool hideTrash: true; |
33 | property bool hideNonTrash: false; | 33 | property bool hideNonTrash: false; |
34 | property string searchString: "" | 34 | property string searchString: "" |
35 | property bool autoLoadImages: true | ||
35 | 36 | ||
36 | Kube.Listener { | 37 | Kube.Listener { |
37 | filter: Kube.Messages.searchString | 38 | filter: Kube.Messages.searchString |
@@ -143,6 +144,7 @@ FocusScope { | |||
143 | incomplete: model.incomplete | 144 | incomplete: model.incomplete |
144 | current: delegateRoot.isCurrentItem | 145 | current: delegateRoot.isCurrentItem |
145 | searchString: root.searchString | 146 | searchString: root.searchString |
147 | autoLoadImages: root.autoLoadImages | ||
146 | } | 148 | } |
147 | } | 149 | } |
148 | 150 | ||
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index d18ed8e6..a43c99e9 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -43,6 +43,7 @@ Rectangle { | |||
43 | property bool current: false; | 43 | property bool current: false; |
44 | property bool unread; | 44 | property bool unread; |
45 | property alias searchString: mailViewer.searchString | 45 | property alias searchString: mailViewer.searchString |
46 | property alias autoLoadImages: mailViewer.autoLoadImages | ||
46 | 47 | ||
47 | implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kube.Units.largeSpacing | 48 | implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kube.Units.largeSpacing |
48 | 49 | ||