D28194: [WIP] Fix loading button icons from qrc

Nicolas Fella noreply at phabricator.kde.org
Sun Mar 22 01:04:31 GMT 2020


nicolasfella created this revision.
nicolasfella added reviewers: Plasma, mart.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
nicolasfella requested review of this revision.

REVISION SUMMARY
  Allow to use `icon.source: "qrc:/testicon.png"` in buttons.
  
  WIP as there are a few things that seem weird to me. QIcon only seems to accept `:/foo.png`, not `qrc:/foo.png`, whereas I can't pass `:/foo.png` from QML and need to use `qrc:/foo.png` and hack away the prefix.

REPOSITORY
  R858 Qt Quick Controls 2: Desktop Style

BRANCH
  qrcicons

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

AFFECTED FILES
  plugin/kquickstyleitem.cpp

To: nicolasfella, #plasma, mart
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200322/e4eb0589/attachment.html>


More information about the Plasma-devel mailing list