summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-02 23:28:05 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commit34f5400e99eb0ecbf402fd5e7961dfed7b076ed2 (patch)
treefab9e6774124ce009a913f84f4d529fa0753bab5 /resources/qml/delegates
parentFormat date (close to) the old way in qml timeline (diff)
downloadnheko-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.qml10
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
+}