diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 13:14:05 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 13:14:05 +0200 |
commit | 05f161b22ef701a2fb833ce1fcbe6965d31d80e3 (patch) | |
tree | 5f378e0bea0d9f0f0a14c8b8bc21a2765a29e11a /framework/qml/TextEditor.qml | |
parent | f5e313a64ef9023eba6d725a6aa5cd13da54e0db (diff) | |
download | kube-05f161b22ef701a2fb833ce1fcbe6965d31d80e3.tar.gz kube-05f161b22ef701a2fb833ce1fcbe6965d31d80e3.zip |
Switch the textformat based on the html property
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index 32b0255c..e14e60b0 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml | |||
@@ -64,6 +64,7 @@ FocusScope { | |||
64 | anchors.fill: parent | 64 | anchors.fill: parent |
65 | selectByMouse: true | 65 | selectByMouse: true |
66 | wrapMode: TextEdit.Wrap | 66 | wrapMode: TextEdit.Wrap |
67 | textFormat: root.htmlEnabled ? Qt.RichText : Qt.PlainText | ||
67 | } | 68 | } |
68 | TextArea.flickable: edit | 69 | TextArea.flickable: edit |
69 | } | 70 | } |