From 6f77a1fe9defeab40d90df82df238ef7dd2f906c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 31 Dec 2021 00:47:14 +0100 Subject: Use the styles default delay for tooltips This makes them less annoying when scrolling or accessing the popup menu. See also #860 --- resources/qml/CommunitiesList.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/qml/CommunitiesList.qml') diff --git a/resources/qml/CommunitiesList.qml b/resources/qml/CommunitiesList.qml index 46e24566..0131de89 100644 --- a/resources/qml/CommunitiesList.qml +++ b/resources/qml/CommunitiesList.qml @@ -62,6 +62,7 @@ Page { state: "normal" ToolTip.visible: hovered && collapsed ToolTip.text: model.tooltip + ToolTip.delay: Nheko.tooltipDelay onClicked: Communities.setCurrentTagId(model.id) onPressAndHold: communityContextMenu.show(model.id) states: [ @@ -123,6 +124,7 @@ Page { width: fontMetrics.lineSpacing image: model.collapsed ? ":/icons/icons/ui/collapsed.svg" : ":/icons/icons/ui/expanded.svg" ToolTip.visible: hovered + ToolTip.delay: Nheko.tooltipDelay ToolTip.text: model.collapsed ? qsTr("Expand") : qsTr("Collapse") hoverEnabled: true -- cgit 1.5.1