D14856: Search: Add workaround for missing icons in Gnome icon-theme
Dominik Haumann
noreply at phabricator.kde.org
Wed Aug 15 09:57:44 BST 2018
dhaumann added inline comments.
INLINE COMMENTS
> broulik wrote in katesearchbar.cpp:1332
> `hasThemeIcon)foo)` just does `!QIcon::fromTheme(foo).isNull()` so you might as well just do the same and safe a lookup
What would also be possible:
QIcon mutateIcon = QIcon::fromTheme(QStringLiteral("games-config-options"), QIcon::fromTheme(QStringLiteral("preferences-system")));
The 2nd parameter is the fallback Icon. This would be much shorter.
REPOSITORY
R39 KTextEditor
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D14856
To: sars, #kate, dhaumann
Cc: broulik, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180815/abcb707a/attachment-0001.html>
More information about the KWrite-Devel
mailing list