diff --git a/src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml b/src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml --- a/src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml +++ b/src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml @@ -149,11 +149,11 @@ onClicked: modelData.trigger() enabled: modelData.enabled visible: modelData.visible - //NOTE: there aren't any global settings where to take "official" tooltip timeouts - Controls.ToolTip.delay: 1000 - Controls.ToolTip.timeout: 5000 - Controls.ToolTip.visible: (Kirigami.Settings.isMobile ? pressed : hovered) && modelData.tooltip.length > 0 - Controls.ToolTip.text: modelData.tooltip + + Controls.ToolTip { + text: modelData.tooltip + visible: (Kirigami.Settings.isMobile ? pressed : hovered) && text.length > 0 + } } } } @@ -182,8 +182,9 @@ horizontalAlignment: Text.AlignHCenter elide: Text.ElideRight } - Controls.ToolTip.delay: 1000 - Controls.ToolTip.timeout: 5000 - Controls.ToolTip.visible: hovered && delegate.toolTip.length > 0 - Controls.ToolTip.text: toolTip + + Controls.ToolTip { + visible: delegate.hovered && text.length > 0 + text: delegate.toolTip + } }