Listen to the application style changing
ClosedPublic

Authored by broulik on Sat, Oct 5, 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.Sat, Oct 5, 4:18 PM
Restricted Application added a project: Plasma. · View Herald TranscriptSat, Oct 5, 4:18 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Sat, Oct 5, 4:18 PM
mart accepted this revision.Thu, Oct 10, 11:06 AM
This revision is now accepted and ready to land.Thu, Oct 10, 11:06 AM