From 69490a01767362e62a674313df5bca1ea2237831 Mon Sep 17 00:00:00 2001 From: YeShanShan Date: Mon, 22 Jan 2024 16:53:39 +0800 Subject: [PATCH] fix: icon doesn't change when iconTheme changed Adding iconTheme to it's url, `QQuickImageBase` has a cache store, and Url as a part of the key. it depends on https://github.com/linuxdeepin/dtkgui/pull/221. --- src/private/dquickdciiconimage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/private/dquickdciiconimage.cpp b/src/private/dquickdciiconimage.cpp index 9e5cc13ee..53add5720 100644 --- a/src/private/dquickdciiconimage.cpp +++ b/src/private/dquickdciiconimage.cpp @@ -44,6 +44,7 @@ QUrlQuery DQuickDciIconImageItemPrivate::getUrlQuery() query.addQueryItem(QLatin1String("name"), parentPriv->name); query.addQueryItem(QLatin1String("mode"), QString::number(parentPriv->mode)); query.addQueryItem(QLatin1String("theme"), QString::number(parentPriv->theme)); + query.addQueryItem(QLatin1String("iconTheme"), appIconThemeName()); DDciIconPalette pal = parentPriv->palette; if (!parentPriv->palette.foreground().isValid() && q_func()->color().isValid()) { pal.setForeground(q_func()->color());