migration KIcon to QIcon

Aleix Pol aleixpol at kde.org
Tue Dec 17 13:56:46 UTC 2013


On Mon, Dec 16, 2013 at 5:18 PM, Michal Humpula <michal.humpula at seznam.cz>wrote:

> Hi there,
>
> have a small glitch with icon loading on frameworks. If I understand
> correctly, the migration path for KIcon is QIcon::fromTheme, right?
>
> Unfortunately this is giving me empty results, which might be caused by
> QIcon::themeName() giving me empty string. If I configure the theme
> manually,
> i.e. by calling QIcon::setThemeName("oxygen"), everything works fine, icons
> are displayed again.
>
> The "kcmshell5 icons" is showing me the selected oxygen icons, though.
>
> Any idea what my be missing/misconfigured in my installation?
>
> frameworks: latest git
> Qt: v5.2
> system: Debian unstable
>
> Cheers
>
> Michal
>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>

Maybe you should make sure the correct QPA is called? If it is, we should
probably do the setThemeName from the QPA You can find the code in
tier4/frameworksintegration.
Also, make sure all environment variables are set,
especially KDE_FULL_SESSION=true.

Cheers!
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131217/41a2ec89/attachment.html>


More information about the Kde-frameworks-devel mailing list