broulik created this revision. broulik added a reviewer: Plasma. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. broulik requested review of this revision.
REVISION SUMMARY Ensures all controls resize and repaint when the widget style changes. There's no style change signal and `QEvent::StyleChange` is only sent to `allWidgets`, so we listen for the `QStyle` instance being destroyed. TEST PLAN - Changed widget style in KCM, the qml controls resized (different padding in styles) and repainted (new look) properly now REPOSITORY R858 Qt Quick Controls 2: Desktop Style REVISION DETAIL https://phabricator.kde.org/D24425 AFFECTED FILES plugin/kquickstyleitem.cpp plugin/kquickstyleitem_p.h To: broulik, #plasma Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart