<table><tr><td style="">sitter requested changes to this revision.<br />sitter added a comment.<br />This revision now requires changes to proceed.
</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/D19596">View Revision</a></tr></table><br /><div><div><p>That seems to break the category icons because <tt style="background: #ebebeb; font-size: 13px;">KDE::icon(menuItem->kcm().icon()</tt> is only working on Kcm entries, while KcmCategory entries overload <tt style="background: #ebebeb; font-size: 13px;">::icon</tt> with divergent behavior.</p>

<p>I think what we need is to change <tt style="background: #ebebeb; font-size: 13px;">KcmTreeItem::icon()</tt> (and its derived class KcmCategoryItem) to <tt style="background: #ebebeb; font-size: 13px;">QString KcmTreeItem::iconName()</tt> and use that on the KDE::icon call. And <tt style="background: #ebebeb; font-size: 13px;">InfoKcmModel::data</tt> needs changing to <tt style="background: #ebebeb; font-size: 13px;">QIcon::fromTheme(item->iconName())</tt> I guess.</p>

<p><a href="https://phabricator.kde.org/F6670271" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6670271: Screenshot_20190307_170538.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R102 KInfoCenter</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19596">https://phabricator.kde.org/D19596</a></div></div><br /><div><strong>To: </strong>mart, Plasma, sitter<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>