10import QtQuick.Controls as QQC2
12import org.kde.kirigami as Kirigami
47 property alias toolTipText: toolTip.text
48 property bool toolTipVisible: false
50 text: qsTr("Show Contextual Help")
51 icon.name:
"help-contextual-symbolic"
52 display: QQC2.ToolButton.IconOnly
54 Accessible.description: toolTipText
57 toolTip.delay = toolTipVisible ? Kirigami.Units.toolTipDelay : 0;
58 toolTipVisible = !toolTipVisible;
60 onActiveFocusChanged: {
61 toolTip.delay = Kirigami.Units.toolTipDelay;
62 toolTipVisible =
false;
64 Layout.maximumHeight: parent?.height ?? -1
69 visible: root.hovered || root.toolTipVisible || toolTipHandler.hovered
71 if (!visible && root.toolTipVisible) {
72 root.toolTipVisible =
false;
73 delay = Kirigami.Units.toolTipDelay;
82 enabled: !root.toolTipVisible
89 cursorShape:
Qt.WhatsThisCursor
90 acceptedButtons:
Qt.NoButton
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.