mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-04 19:26:19 +00:00
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:
+7
-16
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user