Tooltip: removed auto-positionning relative to the bar. as many tooltips are used in panels

- still a few edge cases to work on
This commit is contained in:
ItsLemmy
2025-09-27 14:57:11 -04:00
parent 4c516200dc
commit 8e248f6795
15 changed files with 44 additions and 23 deletions
+6 -1
View File
@@ -11,6 +11,9 @@ Rectangle {
property string icon
property string tooltipText
property bool tooltipPositionAbove: false
property bool tooltipPositionLeft: false
property bool tooltipPositionRight: false
property bool enabled: true
property bool allowClickWhenDisabled: false
property bool hovering: false
@@ -65,7 +68,9 @@ Rectangle {
NTooltip {
id: tooltip
target: root
positionAbove: Settings.data.bar.position === "bottom"
positionAbove: root.tooltipPositionAbove
positionLeft: root.tooltipPositionLeft
positionRight: root.tooltipPositionRight
text: root.tooltipText
}