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

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/qqc2-desktop-style/-
                   |                            |/commit/ed82077889fce696f99
                   |                            |3a5376c27c13f177d5bb8

--- Comment #3 from Marco Martin <[email protected]> ---
Git commit ed82077889fce696f993a5376c27c13f177d5bb8 by Marco Martin.
Committed on 20/10/2025 at 11:03.
Pushed by mart into branch 'master'.

SpinBox: Make paddings integer to avoid potential polish loops

This is not about pixel alignment on fractipnal scaling, but
about a quirk adapting QStyle pixelmetrics, that are always
integer, with QML items which can potentially have fractional sizes

right padding depends from the size - styleitem.editRect.right)
which will change the implicit width, which might change the width,
which will change the right padding.

right padding is always fixed if sizes are integer as
styleitem.x + styleitem.width - styleitem.editRect.right is always the
same result, but only if styleitem.width is integer, because
styleitem.editRect will always be integer

This is very visible on the notifications kcm with the chinese language

Make sure that leftPadding and rightPadding are always rounded so
this won't happen again

M  +3    -2    org.kde.desktop/SpinBox.qml

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

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

Reply via email to