summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 11:59:21 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 11:59:21 +0200
commit2307a07f6483d64e50b0203b1948f42e6fab86dc (patch)
tree3ce3ffc418c2c84ccb314c24325e495c906b205d
parentc1edda931d81f159e5c4be9f753153b621bdbad2 (diff)
downloadkube-2307a07f6483d64e50b0203b1948f42e6fab86dc.tar.gz
kube-2307a07f6483d64e50b0203b1948f42e6fab86dc.zip
Use the switch
-rw-r--r--components/kube/contents/ui/ComposerView.qml11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml
index 29858767..34a2f56c 100644
--- a/components/kube/contents/ui/ComposerView.qml
+++ b/components/kube/contents/ui/ComposerView.qml
@@ -272,10 +272,9 @@ Kube.View {
272 272
273 spacing: Kube.Units.largeSpacing 273 spacing: Kube.Units.largeSpacing
274 274
275 Kube.Button { 275 Kube.Switch {
276 id: html 276 id: html
277 text: checked ? qsTr("plain") : qsTr("html") 277 text: checked ? qsTr("plain") : qsTr("html")
278 checkable: true
279 focusPolicy: Qt.TabFocus 278 focusPolicy: Qt.TabFocus
280 focus: false 279 focus: false
281 } 280 }
@@ -347,14 +346,6 @@ Kube.View {
347 onActiveFocusChanged: closeFirstSplitIfNecessary() 346 onActiveFocusChanged: closeFirstSplitIfNecessary()
348 Keys.onEscapePressed: recipients.forceActiveFocus() 347 Keys.onEscapePressed: recipients.forceActiveFocus()
349 initialText: composerController.body 348 initialText: composerController.body
350 /**
351 * We need to:
352 * * initially load the text from the controller (for replies and whatnot)
353 * * Then only read from documenthandler in either html or plain (depending on the format).
354 * * Convert between html and plain when switching the format.
355 * * Skip invisible chars
356 * * Remove invisible chars from copied text somehow
357 */
358 onTextChanged: composerController.body = text; 349 onTextChanged: composerController.body = text;
359 } 350 }
360 } 351 }