summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/mailviewer/qml/ErrorPart.qml1
-rw-r--r--components/mailviewer/qml/HtmlContent.qml4
-rw-r--r--components/mailviewer/qml/MailDataModel.qml7
-rw-r--r--components/mailviewer/qml/MailPart.qml1
-rw-r--r--components/mailviewer/qml/MailViewer.qml1
-rw-r--r--components/mailviewer/qml/TextContent.qml1
6 files changed, 14 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