Revert "Improve time handling in NeoChat"
This reverts commit 92c58b0ea0.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user