| Summary: | Third party icons are not loaded even if available in QIcon fallbackSearchPaths | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kiconthemes | Reporter: | Rinigus <rinigus.git> |
| Component: | general | Assignee: | Christoph Feck <cfeck> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | fabstz-it, kde, kdelibs-bugs-null, rinigus.git |
| Priority: | NOR | ||
| Version First Reported In: | 5.56.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kiconthemes/commit/19d2ec41fef106de5d60adacbb43f22a90ff6c1b | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Rinigus
2019-03-16 13:36:50 UTC
From discussions on Kirigami IRC, it seemed that the issue is probably in KIconLoader. In particular, it seems that KIconLoader ignores fallback path set by QIcon::setFallbackSearchPaths call. In my application, problem is evident only in QT_QUICK_CONTROLS_STYLE=org.kde.desktop with all other styles, including Plasma, working as expected. Hence the move to the frameworks-kiconthemes product. Maybe that is the reason ? Does it mean kde doesn't use the pathes set with QIcon::setThemeSearchPaths ? https://cgit.kde.org/kiconthemes.git/tree/src/kicontheme.cpp#n289 // local embedded icons have preference icnlibs << QStringLiteral(":/icons"); Git commit 19d2ec41fef106de5d60adacbb43f22a90ff6c1b by Nicolas Fella. Committed on 13/06/2020 at 22:30. Pushed by nicolasfella into branch 'master'. Respect QIcon::fallbackSearchpaths() Summary: When an icon isn't found within a theme we are supposed to look for it in QIcon::fallbackSearchpaths() (https://doc.qt.io/qt-5/qicon.html#fromTheme). Test Plan: Create /home/nico/foo.svg Add QIcon::setFallbackSearchPaths(QIcon::fallbackSearchPaths() << QStringLiteral("/home/nico/myicons")); to my app Use foo icon somewhere Reviewers: #plasma, #frameworks, mart Reviewed By: #plasma, mart Subscribers: mart, kossebau, aacid, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D29390 M +17 -0 src/kiconloader.cpp https://invent.kde.org/frameworks/kiconthemes/commit/19d2ec41fef106de5d60adacbb43f22a90ff6c1b |