Merge branch 'new-windowing-system-and-shadows' of https://github.com/noctalia-dev/noctalia-shell into new-windowing-system-and-shadows

This commit is contained in:
Ly-sec
2025-11-03 19:28:31 +01:00
+7 -16
View File
@@ -134,9 +134,8 @@ Slider {
anchors.fill: parent anchors.fill: parent
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
hoverEnabled: true hoverEnabled: true
// Pass through mouse events to the slider acceptedButtons: Qt.NoButton // Don't accept any mouse buttons - only hover
propagateComposedEvents: true propagateComposedEvents: true
preventStealing: false
onEntered: { onEntered: {
root.hovering = true root.hovering = true
@@ -151,23 +150,15 @@ Slider {
TooltipService.hide() TooltipService.hide()
} }
} }
}
onPressed: function (mouse) { // Hide tooltip when slider is pressed (anywhere on the slider)
if (root.tooltipText) { Connections {
target: root
function onPressedChanged() {
if (root.pressed && root.tooltipText) {
TooltipService.hide() TooltipService.hide()
} }
// Pass the event through to the slider
mouse.accepted = false
}
onReleased: function (mouse) {
// Pass the event through to the slider
mouse.accepted = false
}
onPositionChanged: function (mouse) {
// Pass the event through to the slider
mouse.accepted = false
} }
} }
} }