From 6d2fc32a423b7b470521c67d94d9b59c168a948f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 28 Aug 2021 12:03:48 +0000 Subject: Show message timestamps --- qml/Message.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qml') diff --git a/qml/Message.qml b/qml/Message.qml index 85cc2ac..c7daf07 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -218,10 +218,11 @@ RowLayout { } Label { Layout.fillWidth: true - text: messageObject.message.state == 26 ? "✓" + text: Qt.formatDateTime(messageObject.message.timestamp, "dd. MMM yyyy, hh:mm") + + (messageObject.message.state == 26 ? "✓" : messageObject.message.state == 28 ? "✓✓" : messageObject.message.state == 24 ? "✗" - : ""; + : ""); } } } -- cgit v1.2.3-70-g09d2