diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-08 22:37:46 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-08 22:38:24 +0200 |
commit | 9f2626385bf9c12a240f5fd17b90304c231fba5e (patch) | |
tree | 24ed7d30ac7e54f54f78cab0a2e1163e6298b014 /framework/qml/TextEditor.qml | |
parent | f1e9fd9c4b5a166f8d0cbcec099470cbcea0f058 (diff) | |
download | kube-9f2626385bf9c12a240f5fd17b90304c231fba5e.tar.gz kube-9f2626385bf9c12a240f5fd17b90304c231fba5e.zip |
Clear all formatting when converting to plain text.
We used to end up with whatever formatting the current cursor had.
Task: https://phabricator.kde.org/T7160
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index 8a5c2bb9..3ce6b482 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml | |||
@@ -46,8 +46,8 @@ FocusScope { | |||
46 | edit.text = t | 46 | edit.text = t |
47 | } else { | 47 | } else { |
48 | var t = document.plainText | 48 | var t = document.plainText |
49 | document.resetFormat() | ||
49 | edit.textFormat = Qt.PlainText | 50 | edit.textFormat = Qt.PlainText |
50 | edit.font.bold = false | ||
51 | edit.text = t | 51 | edit.text = t |
52 | } | 52 | } |
53 | } | 53 | } |