[patch] KAboutData::programLogo(), QImage used
l.savernik at aon.at
Thu Sep 2 13:17:39 BST 2004
Am Donnerstag, 2. September 2004 13:42 schrieb Jarosław Staniek:
> > On Thu, 2 Sep 2004, [UTF-8] Jarosław Staniek wrote:
> >>OK now?
> > To save memory and cpu cycles you might want to consider using QImage*
> > that is initialized to 0 by default. But this consideration depends on
> > the likelyhood of an logo being set :)
> Isn't KAboutData object allocated and used mostly once for (typical)
> application? Otherwise your suggestion could be perfectly right.
Yes, but it has been initialized unconditionally whenever the application
starts. Startup performance shouldn't become worse than it already is, so I
think Harri's suggestion is very sensible. (I also think that nearly no app
will change its icon, given the fact that they have been able to do without
for such a long time.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel