From 42cec7d5ba2692208be41a2096a4823347ddf25d Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 21 Jul 2024 17:32:36 +0200 Subject: [PATCH] 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 --- src/timeline/AuthorComponent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/AuthorComponent.qml b/src/timeline/AuthorComponent.qml index dcff27924..012e44cf6 100644 --- a/src/timeline/AuthorComponent.qml +++ b/src/timeline/AuthorComponent.qml @@ -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 {