Add HToolTip.instantToggle(), use for some buttons

Used for buttons that trigger a tooltip instantly: if the tooltip is
currently visible, hide it.
This commit is contained in:
miruka
2020-11-05 22:03:59 -04:00
parent 0eb57c5986
commit ed74592769
3 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ HButton {
iconItem.small: true
toolTip.text: helpText
onClicked: toolTip.instantShow()
onClicked: toolTip.instantToggle()
onActiveFocusChanged: if (! activeFocus && toolTip.visible) toolTip.hide()
Layout.fillHeight: true