Skip to content
  • ivan tkachenko's avatar
    applet: Support RTL layouts in volume slider · f0d81fab
    ivan tkachenko authored
    Extracted code into VolumeSlider component of its own, and synced it
    from a recent PC3.Slider rewrite which implemented better RTL support.
    
    Removed double-property hack with ignoreValueChange backing flag,
    because in modern Qt/QML Slider::moved signal should be used to react
    to user-driven changes while preserving the binding on `value`
    property. Such binding still needs to be reset after user interactions,
    so there's a simple rebinding on release in onPressedChanged handler.
    Timer is no longer needed, and slider still works just fine without it.
    
    See also: https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/585
    f0d81fab