From 30919eca7a9b306420b14c200860766e7bbbf891 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 14 Apr 2021 12:50:59 -0400 Subject: [PATCH] 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. --- src/gui/Base/Buttons/FieldHelpButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Base/Buttons/FieldHelpButton.qml b/src/gui/Base/Buttons/FieldHelpButton.qml index 0e860c76..f77ca6bd 100644 --- a/src/gui/Base/Buttons/FieldHelpButton.qml +++ b/src/gui/Base/Buttons/FieldHelpButton.qml @@ -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