FieldHelpButton: always show tooltip on click

Rather than toggling display of the tooltip.
Since the tooltip will show up on hover too, the user might quickly
hover then click on the button only to see the tooltip immediatly
disappear.

Closing the tooltip can still be done by moving the cursor away from the
button, or tapping on it/anywhere else.
This commit is contained in:
miruka 2021-04-14 12:50:59 -04:00
parent e4f3339675
commit 30919eca7a

View File

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