Show time without timezone in tooltip

Constructing the timezone string is relatively heavy and is done for each delegate, even when the tooltip is never shown
This commit is contained in:
Tobias Fella
2024-07-21 17:32:36 +02:00
parent 2df2e39d43
commit 42cec7d5ba

View File

@@ -60,7 +60,7 @@ RowLayout {
horizontalAlignment: Text.AlignRight
color: Kirigami.Theme.disabledTextColor
QQC2.ToolTip.visible: timeHoverHandler.hovered
QQC2.ToolTip.text: root.time.toLocaleString(Qt.locale(), Locale.LongFormat)
QQC2.ToolTip.text: root.time.toLocaleString(Qt.locale(), Locale.ShortFormat)
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
HoverHandler {