mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-25 19:34:13 +02:00
50792ba1ad
After a live light/dark switch only the sheet changed colors; the viewport around it kept the previous palette. Qt repaints a widget on an application palette change only when the widget's own palette changed with it, and under the folio tab widget's style sheet it does not, so the only repaints came from the scene and covered the scene rectangle alone. PaletteGraphicsView now watches the application object for ApplicationPaletteChange, the one receiver Qt always notifies, and repaints its whole viewport. The test paletteViewFollowsTheApplicationUnderAStyleSheet now also requires a full-viewport repaint after each switch, before anything asks the view for a rendering.