Don't show tooltip immediately.

This commit is contained in:
Remco Burema 2019-11-06 17:22:58 +01:00
parent 04304c1515
commit da92c36afb
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -160,14 +160,20 @@ Item
enabled: model.description !== undefined
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,
Qt.point(-(intentCategoryLabel.x - qualityRow.x) - UM.Theme.getSize("thick_margin").width, 0),
model.description
)
}
onEntered: intentTooltipTimer.start()
onExited: base.hideTooltip()
}