<table><tr><td style="">pino created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />pino requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18770">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When converting a QIcon to a vector of images to D-Bus, the list of<br />
available sizes is used to extract the pixmaps of the icon. In case<br />
the engine of the icon advertizes no sizes, then no pixmaps are sent:<br />
this is the case of the SVG icon engine shipped with QtSvg, so creating<br />
a QIcon from an SVG file means nothing is sent for it.</p>
<p>As solution, use a list of few well-known sizes in case no size is<br />
available: this way there is the possibility to have some pixmaps for<br />
that icon.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">create a KStatusNotifierItem</li>
<li class="remarkup-list-item">create a QIcon from a SVG file</li>
<li class="remarkup-list-item">set that QIcon as pixmap for the KStatusNotifierItem, e.g. using setIconByPixmap</li>
</ul>
<p>Without this change, no icon is shown in the Plasma tray.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R289 KNotifications</div></div></div><br /><div><strong>BRANCH</strong><div><div>ksni-fallback-icons (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18770">https://phabricator.kde.org/D18770</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kstatusnotifieritem.cpp</div></div></div><br /><div><strong>To: </strong>pino<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>