Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/PrivateActionToolButton.qml
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 105 | Icon { | |||
---|---|---|---|---|---|
108 | Layout.minimumHeight: Units.iconSizes.small | 108 | Layout.minimumHeight: Units.iconSizes.small | ||
109 | color: mainIcon.color | 109 | color: mainIcon.color | ||
110 | source: "arrow-down" | 110 | source: "arrow-down" | ||
111 | visible: showMenuArrow && menu.actions && menu.actions.length > 0 | 111 | visible: showMenuArrow && menu.actions && menu.actions.length > 0 | ||
112 | } | 112 | } | ||
113 | } | 113 | } | ||
114 | } | 114 | } | ||
115 | Controls.ToolTip { | 115 | Controls.ToolTip { | ||
116 | visible: control.hovered && text.length > 0 && !menu.visible | 116 | visible: control.hovered && text.length > 0 && !menu.visible && !control.pressed | ||
117 | text: kirigamiAction ? (kirigamiAction.tooltip.length ? kirigamiAction.tooltip : kirigamiAction.text) : "" | 117 | text: kirigamiAction ? (kirigamiAction.tooltip.length ? kirigamiAction.tooltip : kirigamiAction.text) : "" | ||
118 | delay: 1000 | 118 | delay: 1000 | ||
119 | timeout: 5000 | 119 | timeout: 5000 | ||
120 | y: control.height | 120 | y: control.height | ||
121 | } | 121 | } | ||
122 | } | 122 | } |