Commit 24d3c665 authored by Nate Graham's avatar Nate Graham
Browse files

ApplicationResourceButton: switch to individual ToolTip instances

We currently use a shared tooltip ostensibly to save memory, but the
shared opening/closing conditions cause the tooltips to close too early
when the cursor has hovered over more then one button by the time it
comes to rest on a different one.

To fix around this in the simplest way, let's switch to give each button
a unique ToolTip instance. In testing, there is no appreciable increase
in memory usage.

BUG: 456129
FIXED-IN: 5.25.3
parent e473b019
Pipeline #199696 passed with stage
in 2 minutes and 3 seconds
......@@ -57,8 +57,7 @@ QQC2.Button {
opacity: 0.6
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip.timeout: Kirigami.Units.veryLongDuration
QQC2.ToolTip.visible: root.tooltipText ? (Kirigami.Settings.isMobile ? pressed : hovered) : false
QQC2.ToolTip.text: root.tooltipText ? root.tooltipText : ""
QQC2.ToolTip {
text: root.tooltipText ? root.tooltipText : ""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment