https://bugs.kde.org/show_bug.cgi?id=473400

ratijas <m...@ratijas.tk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/qqc2-desktop-style/-
                   |                            |/commit/0bf7d834e1df31a639c
                   |                            |9e560da4cac7051fce0b2
         Resolution|---                         |FIXED

--- Comment #1 from ratijas <m...@ratijas.tk> ---
Git commit 0bf7d834e1df31a639c9e560da4cac7051fce0b2 by ivan tkachenko.
Committed on 27/08/2023 at 20:08.
Pushed by ratijas into branch 'master'.

Slider: Fix non-live sliders, rework bridged values

Similar to the latest ProgressBar rewrite:

> Get rid of nasty math! Embrace simplicity and perfection of `position`!
>
> Now the range of possible bridged values is totally predictable, safe
> from overflows, and precise enough to express fractions of progress
> even on the biggest available monitors.

Expect, here we still have to deal with to/from/stepSzie, because
bridged step needs to be scaled.

But most importantly, `position` receives real-time updates even for
non-live Sliders, while `value` gets stuck until a Slider is released.

M  +6    -8    org.kde.desktop/Slider.qml
M  +34   -1    tests/testBars.qml

https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/0bf7d834e1df31a639c9e560da4cac7051fce0b2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to