[PATCH] Update KAboutData after KApplication instance has been created

Lubos Lunak l.lunak at suse.cz
Thu Mar 25 09:54:06 GMT 2010

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, but I think the proper fix for your problem is creating a 
temporary KComponentData and KStandardDirs and use that. It certainly seems a 
bit clearer than keeping a pointer to something value-based and changing it 
at random places.

 Lubos Lunak
 openSUSE Boosters team, KDE developer
 l.lunak at suse.cz , l.lunak at kde.org

More information about the kde-core-devel mailing list