diff options
author | Christian Ehrlicher <[email protected]> | 2024-12-11 19:22:09 +0100 |
---|---|---|
committer | Christian Ehrlicher <[email protected]> | 2025-01-12 07:40:48 +0100 |
commit | c64774eef72411029f7c2fb611328f25b83ff8ca (patch) | |
tree | 71bcef65248b06fa662510a43d237f279e674301 | |
parent | 0e681153249e883d93f533dc69f34c410c0ab35b (diff) |
QIcon: don't search for high-res svg icons
There is no need to search for high-res svg icons - a svg scalable by
design. Also the QSvgIconEngine does not support it.
Pick-to: 6.9 6.8
Change-Id: Ib76c887900ce77268e9c0253cb697b8de9e7f10e
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | src/gui/image/qicon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp index c8cb455a4e7..acb059d7aba 100644 --- a/src/gui/image/qicon.cpp +++ b/src/gui/image/qicon.cpp @@ -1187,6 +1187,9 @@ void QIcon::addFile(const QString &fileName, const QSize &size, Mode mode, State if (!alreadyAdded) d->engine->addFile(fileName, size, mode, state); + if (d->engine->key() == "svg"_L1) // not needed and also not supported + return; + // Check if a "@Nx" file exists and add it. QString atNxFileName = qt_findAtNxFile(fileName, qApp->devicePixelRatio()); if (atNxFileName != fileName) |