KIcon -> QIcon and KIconLoader

Martin Klapetek martin.klapetek at gmail.com
Fri Jul 25 21:45:29 UTC 2014


On Fri, Jul 25, 2014 at 11:21 PM, David Narvaez <david.narvaez at computer.org>
wrote:

> Hi,
>
> The migration script from KIcon to QIcon seems to think every usage of
> KIcon( ... ) is  of the form KIcon( iconName ) but there's also KIcon(
> iconName, pointerToIconLoader ). What do I need to do to port those to
> QIcon?
>

You can do

QIcon icon(new KIconEngine(iconName, pointerToIconLoader));

iirc.

Cheers
-- 
Martin Klapetek | KDE Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140725/68864638/attachment.html>


More information about the Kde-frameworks-devel mailing list