summary refs log tree commit diff
path: root/resources/qml/CommunitiesList.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:47:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:48:55 +0100
commit6f77a1fe9defeab40d90df82df238ef7dd2f906c (patch)
tree79f00ea0ef6e64864216aabc8c7227453225b09e /resources/qml/CommunitiesList.qml
parentGet rid of some useless code (diff)
downloadnheko-6f77a1fe9defeab40d90df82df238ef7dd2f906c.tar.xz
Use the styles default delay for tooltips
This makes them less annoying when scrolling or accessing the popup
menu.

See also #860
Diffstat (limited to 'resources/qml/CommunitiesList.qml')
-rw-r--r--resources/qml/CommunitiesList.qml2
1 files changed, 2 insertions, 0 deletions
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