migration KIcon to QIcon

Michal Humpula michal.humpula at seznam.cz
Tue Dec 17 14:04:29 UTC 2013


Thanks Aleix! The KDE_FULL_SESSION=true fixed the thing:)

Would be nice to add it to the list of variables in "Runtime setup" section at 
http://community.kde.org/Frameworks/Building. I've completely missed it in
"Running unit tests" one:)

Cheers
Michal

On Tuesday 17 of December 2013 14:56:46 Aleix Pol wrote:
> 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



More information about the Kde-frameworks-devel mailing list