[PATCH] Update KAboutData after KApplication instance has been created

Rafael Fernández López ereslibre at kde.org
Wed Mar 24 22:00:20 GMT 2010


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.

The main problem was not that the widget was being created when the
application instance was created (I checked that). It is smart and
creates the about widget only when necessary. Basically it was that
KComponentData was "caching" it as an instance, so changing the
KAboutData afterwards (the instance you created on main.cpp) had no
effect since it had been already cached.

So, what do you think about the attached patch ? I would give a week
to leave comments, and next wednesday I'd commit this into trunk.
Another question: do you think I should backport this change ?


Best regards,
Rafael Fernández López.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs.diff
Type: text/x-patch
Size: 4082 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100324/f515534b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 826 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100324/f515534b/attachment.cpp>


More information about the kde-core-devel mailing list