Revert "Improve time handling in NeoChat"

This reverts commit 92c58b0ea0.
This commit is contained in:
James Graham
2026-01-25 13:07:53 +00:00
parent 92c58b0ea0
commit f22cafbce1
17 changed files with 172 additions and 191 deletions

View File

@@ -27,9 +27,14 @@ RowLayout {
required property var author
/**
* @brief The timestamp of the event as a NeoChatDateTime.
* @brief The timestamp of the message.
*/
required property NeoChatDateTime dateTime
required property var time
/**
* @brief The timestamp of the message as a string.
*/
required property string timeString
Layout.fillWidth: true
Layout.maximumWidth: Message.maxContentWidth
@@ -78,11 +83,11 @@ RowLayout {
}
QQC2.Label {
id: timeLabel
text: root.dateTime.hourMinuteString
text: root.timeString
horizontalAlignment: Text.AlignRight
color: Kirigami.Theme.disabledTextColor
QQC2.ToolTip.visible: timeHoverHandler.hovered
QQC2.ToolTip.text: root.dateTime.shortDateTime
QQC2.ToolTip.text: root.time.toLocaleString(Qt.locale(), Locale.ShortFormat)
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
HoverHandler {