After we set our palette give the current QStyle a chance to give us a better
palette that maybe fits better because we can only use hardcoded colors. To
avoid infinite recursion when the style calls setPalette on the widget we don't
react to palette change events anymore but when the application palette is
changed.
Details
Details
N/A
Diff Detail
Diff Detail
- Repository
- R236 KWidgetsAddons
- Branch
- polish (branched from master)
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 21860 Build 21878: arc lint + arc unit
Comment Actions
But then now we are not refreshing the palette when it changes outside, no?
How about adding a boolean value when it's already happening to prevent the infinite recursion?
Comment Actions
I refresing the palette when the application palette changes. But yes could also do it this way