hotfix(StatusMessage): restore timestamps

Qt broke the API between Qt 5.14 and Qt 5.15
(https://doc.qt.io/archives/qt-5.14/qml-qtqml-qt.html#formatDateTime-method vs
https://doc.qt.io/qt-5/qml-qtqml-qt.html#formatDateTime-method)

We'll move this function to C++ in a followup PR to preserve the API
compatibility while keeping it fast enough
This commit is contained in:
Lukáš Tinkl 2023-01-11 11:27:46 +01:00 committed by Lukáš Tinkl
parent 046e75e441
commit 821c1f0ba0
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ Control {
property StatusMessageDetails messageDetails: StatusMessageDetails {} property StatusMessageDetails messageDetails: StatusMessageDetails {}
property StatusMessageDetails replyDetails: StatusMessageDetails {} property StatusMessageDetails replyDetails: StatusMessageDetails {}
property string timestampString: Qt.formatTime(new Date(timestamp), Qt.locale(), Locale.ShortFormat) property string timestampString: new Date(timestamp).toLocaleTimeString(Qt.locale(), Locale.ShortFormat)
property string timestampTooltipString: Qt.formatDateTime(new Date(timestamp), Qt.locale(), Locale.LongFormat) property string timestampTooltipString: new Date(timestamp).toLocaleString()
signal clicked(var sender, var mouse) signal clicked(var sender, var mouse)
signal profilePictureClicked(var sender, var mouse) signal profilePictureClicked(var sender, var mouse)