Skip to content

Commit

Permalink
hotfix(StatusMessage): restore timestamps
Browse files Browse the repository at this point in the history
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
  • Loading branch information
caybro committed Jan 11, 2023
1 parent 046e75e commit 821c1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/StatusQ/src/StatusQ/Components/StatusMessage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Control {
property StatusMessageDetails messageDetails: StatusMessageDetails {}
property StatusMessageDetails replyDetails: StatusMessageDetails {}

property string timestampString: Qt.formatTime(new Date(timestamp), Qt.locale(), Locale.ShortFormat)
property string timestampTooltipString: Qt.formatDateTime(new Date(timestamp), Qt.locale(), Locale.LongFormat)
property string timestampString: new Date(timestamp).toLocaleTimeString(Qt.locale(), Locale.ShortFormat)
property string timestampTooltipString: new Date(timestamp).toLocaleString()

signal clicked(var sender, var mouse)
signal profilePictureClicked(var sender, var mouse)
Expand Down

0 comments on commit 821c1f0

Please sign in to comment.