mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Don't show tooltip immediately.
This commit is contained in:
parent
04304c1515
commit
da92c36afb
1 changed files with 8 additions and 2 deletions
|
@ -160,14 +160,20 @@ Item
|
||||||
enabled: model.description !== undefined
|
enabled: model.description !== undefined
|
||||||
acceptedButtons: Qt.NoButton // react to hover only, don't steal clicks
|
acceptedButtons: Qt.NoButton // react to hover only, don't steal clicks
|
||||||
|
|
||||||
onEntered:
|
Timer
|
||||||
{
|
{
|
||||||
base.showTooltip(
|
id: intentTooltipTimer
|
||||||
|
interval: 500
|
||||||
|
running: false
|
||||||
|
repeat: false
|
||||||
|
onTriggered: base.showTooltip(
|
||||||
intentCategoryLabel,
|
intentCategoryLabel,
|
||||||
Qt.point(-(intentCategoryLabel.x - qualityRow.x) - UM.Theme.getSize("thick_margin").width, 0),
|
Qt.point(-(intentCategoryLabel.x - qualityRow.x) - UM.Theme.getSize("thick_margin").width, 0),
|
||||||
model.description
|
model.description
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onEntered: intentTooltipTimer.start()
|
||||||
onExited: base.hideTooltip()
|
onExited: base.hideTooltip()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue