D5109: [Kicker/App Entry] Try QIcon with path if no theme icon is found

Kai Uwe Broulik noreply at phabricator.kde.org
Sun Mar 19 22:36:16 UTC 2017


broulik added a comment.


  What's super weird about this one is that `QIcon::fromTheme` internally actually does
  
    if (QDir::isAbsolutePath(name)) {
        return QIcon(name);
    }
  
  yet only with this patch I get an icon for `.svg` icons with an absolute path I configured. Maybe `icon.availableSizes()` is empty for svg images and thus the previously used fallback argument of `fromTheme` is always chosen.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D5109

To: broulik, #plasma, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170319/6355e8f3/attachment-0001.html>


More information about the Plasma-devel mailing list