Listen to the application style changing
ClosedPublic

Authored by broulik on Oct 5 2019, 4:18 PM.

Details

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

Diff Detail

Repository
R858 Qt Quick Controls 2: Desktop Style
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Oct 5 2019, 4:18 PM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 5 2019, 4:18 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Oct 5 2019, 4:18 PM
mart accepted this revision.Oct 10 2019, 11:06 AM
This revision is now accepted and ready to land.Oct 10 2019, 11:06 AM