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
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
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