summaryrefslogtreecommitdiffstats
path: root/views/composer/qml/View.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/composer/qml/View.qml')
-rw-r--r--views/composer/qml/View.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml
index 9afc5316..ffab3545 100644
--- a/views/composer/qml/View.qml
+++ b/views/composer/qml/View.qml
@@ -36,7 +36,6 @@ Kube.View {
36 resources: [ 36 resources: [
37 Kube.ComposerController { 37 Kube.ComposerController {
38 id: composerController 38 id: composerController
39 htmlBody: html.checked
40 sign: signCheckbox.checked 39 sign: signCheckbox.checked
41 encrypt: encryptCheckbox.checked 40 encrypt: encryptCheckbox.checked
42 onDone: root.done() 41 onDone: root.done()
@@ -305,6 +304,9 @@ Kube.View {
305 focusPolicy: Qt.TabFocus 304 focusPolicy: Qt.TabFocus
306 focus: false 305 focus: false
307 checked: false 306 checked: false
307 onCheckedChanged: {
308 textEditor.htmlEnabled = checked
309 }
308 } 310 }
309 311
310 Row { 312 Row {
@@ -369,12 +371,17 @@ Kube.View {
369 371
370 Layout.fillWidth: true 372 Layout.fillWidth: true
371 Layout.fillHeight: true 373 Layout.fillHeight: true
372 htmlEnabled: html.checked 374 onHtmlEnabledChanged: {
375 html.checked = htmlEnabled
376 composerController.htmlBody = htmlEnabled;
377 }
373 378
374 onActiveFocusChanged: closeFirstSplitIfNecessary() 379 onActiveFocusChanged: closeFirstSplitIfNecessary()
375 Keys.onEscapePressed: recipients.forceActiveFocus() 380 Keys.onEscapePressed: recipients.forceActiveFocus()
376 initialText: composerController.body 381 initialText: composerController.body
377 onTextChanged: composerController.body = text; 382 onTextChanged: {
383 composerController.body = text;
384 }
378 } 385 }
379 } 386 }
380 } 387 }