Update QIconLoader system theme names on QWSI ThemeChange
The GTK platform theme (and possibly others) emit theme change when the named icon theme changes, but that was not propagated to QIconLoader. We now call QIconLoader::updateSystemTheme(), but note that if a user theme has been set we ignore the system theme update and will end up with a stale value, even if the user theme is later cleared. This will be fixed in a follow up commit. Pick-to: 6.6 6.5 Change-Id: I40b537f3618f44d396db0c7ca67e515dfcdfba44 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
03bbad68ce
commit
3025dc597f
@ -9,6 +9,7 @@
|
||||
#include <qpa/qplatformintegrationfactory_p.h>
|
||||
#include "private/qevent_p.h"
|
||||
#include "private/qeventpoint_p.h"
|
||||
#include "private/qiconloader_p.h"
|
||||
#include "qfont.h"
|
||||
#include "qpointingdevice.h"
|
||||
#include <qpa/qplatformfontdatabase.h>
|
||||
@ -2650,6 +2651,7 @@ void QGuiApplicationPrivate::handleThemeChanged()
|
||||
{
|
||||
updatePalette();
|
||||
|
||||
QIconLoader::instance()->updateSystemTheme();
|
||||
QAbstractFileIconProviderPrivate::clearIconTypeCache();
|
||||
|
||||
if (!(applicationResourceFlags & ApplicationFontExplicitlySet)) {
|
||||
|
Loading…
Reference in New Issue
Block a user