QPushButton/fusion style: don't ignore QIcon::On icon
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
commit658bd5d8784f65eaa5a1e4ba7eb44fb1daf512cc
treeda3bc3a095898f002165ea2ed6fabdf7892a7508
parentbca8c7d6359f1ed4b44866cc44fed4ae3a1e582e
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff
src/widgets/styles/qfusionstyle.cpp