From 06d1be146e1ae10f8c613eec7bec29c0a38eec23 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 22 Nov 2020 19:05:40 +0100 Subject: [PATCH] Add time information to the messages --- .../Component/Timeline/MessageDelegate.qml | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/imports/NeoChat/Component/Timeline/MessageDelegate.qml b/imports/NeoChat/Component/Timeline/MessageDelegate.qml index f4eab6b6a..e48e92594 100644 --- a/imports/NeoChat/Component/Timeline/MessageDelegate.qml +++ b/imports/NeoChat/Component/Timeline/MessageDelegate.qml @@ -81,16 +81,24 @@ RowLayout { id: column spacing: Kirigami.Units.smallSpacing - QQC2.Label { - Layout.fillWidth: true - topInset: 0 + RowLayout { + QQC2.Label { + Layout.fillWidth: true + topInset: 0 - visible: showAuthor + visible: showAuthor - text: author.displayName - font.bold: true - color: author.color - wrapMode: Text.Wrap + text: author.displayName + font.bold: true + color: author.color + wrapMode: Text.Wrap + } + + QQC2.Label { + visible: showAuthor + text: time.toLocaleTimeString(Locale.ShortFormat) + color: Kirigami.Theme.disabledTextColor + } } Loader { id: replyLoader