qApp->ApplicationName()

Benjamin Meyer ben at meyerhome.net
Sun Oct 16 20:22:30 BST 2005


On Friday 14 October 2005 4:09 pm, Stephan Kulow wrote:
> Am Freitag, 14. Oktober 2005 20:30 schrieb Benjamin Meyer:
> > Attached is a patch to use QCoreApplication's applicationName(). 
> > KInstance sets the name upon construction.  KApplication was using the
> > objectName to store the application's name.  Sidenote: the code reads
> > much easier when using qApp->applicationName().   With this chance
> > caption() and
> > makeStdCaption can now be static.
>
> There are several Instances in one application. Now you seem to mix them
>
> Greetings, Stephan

Yup, KInstance was a poor choice for doing that.  I have moved it into the 
KApplication constructors using either the arg or the instance name (which is 
normally obtained from the KAboutData).

-Benjamin Meyer

-- 
aka icefox
Public Key: http://www.icefox.net/public_key.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdecore.diff
Type: text/x-diff
Size: 10859 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051016/ef9a3670/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051016/ef9a3670/attachment.sig>


More information about the kde-core-devel mailing list