summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-04-23 11:04:58 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-04-26 20:10:08 +0200
commit6fa50601ab7c55946eecc33453e7d694b5940d8d (patch)
tree08f6c0b7b18eab8b64465fff3bfbb60e657f411b /src/gui
parentd5f759cf6684d4d3574f5306cb5129861cab7103 (diff)
Don't warn when loading icons via the image loaders
9d5ae9f26c98 introduced a warning when a matching icon engine was not found for a given file suffix, under the assumption that all formats would go through icon engine plugins. Unfortunately QIcon itself falls back to a direct use of QPixmapIconEngine when no icon engine plugin is found, which would lead to the warning being emitted for built in formats such as PNG. Until this code can be moved properly into QPixmapIconEngine we'll remove it. Change-Id: I14d1d33a0f0c29e4b4604ef3b53c05cb8e02f867 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qicon.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp
index 562e5e9a3e..41fe649fc5 100644
--- a/src/gui/image/qicon.cpp
+++ b/src/gui/image/qicon.cpp
@@ -1049,8 +1049,6 @@ static QIconEngine *iconEngineFromSuffix(const QString &fileName, const QString
}
}
}
- qWarning("Could not find icon engine for suffix '%s' of file '%s'",
- qUtf8Printable(suffix), qUtf8Printable(fileName));
return nullptr;
}