diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-09-02 23:28:05 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | 34f5400e99eb0ecbf402fd5e7961dfed7b076ed2 (patch) | |
tree | fab9e6774124ce009a913f84f4d529fa0753bab5 /resources/qml/delegates | |
parent | Format date (close to) the old way in qml timeline (diff) | |
download | nheko-34f5400e99eb0ecbf402fd5e7961dfed7b076ed2.tar.xz |
Implement TextMessage delegate
Text selection over multiple items doesn't work yet
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/TextMessage.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml new file mode 100644 index 00000000..5f4b33fa --- /dev/null +++ b/resources/qml/delegates/TextMessage.qml @@ -0,0 +1,10 @@ +import QtQuick 2.5 + +TextEdit { + text: eventData.formattedBody + textFormat: TextEdit.RichText + readOnly: true + wrapMode: Text.Wrap + width: parent.width + selectByMouse: true +} |