[PATCH] Update KAboutData after KApplication instance has been created

David Faure faure at kde.org
Mon Apr 26 10:36:13 BST 2010


On Thursday 25 March 2010, Lubos Lunak wrote:
> On Wednesday 24 of March 2010, Rafael Fernández López wrote:
> > Hello,
> > 
> > I attach a patch that allows you to update the KAboutData once the
> > KApplication instance has been created. This basically allows you to,
> > for example (as attached on main.cpp), set an image that is under the
> > application appdata folder on the other text, or whatever.
> 
>  I think the idea is that KStandardDirs&Co. should be usable without
> KApplication or KGlobal, and IIRC it used to work like that. Apparently
> that's not the case now, there's e.g. some KGlobal usage introduced by some
> locale features

This is still the case, given that KGlobal can create a "fakeComponent" if 
needed, internally.

> but I think the proper fix for your problem is creating a
> temporary KComponentData and KStandardDirs and use that.

I don't think this is the problem that Rafael had; rather, he was updating the 
KAboutData after it had been copied, that's all.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).




More information about the kde-core-devel mailing list