[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KCmdLineArgs4 Question
From:       David Faure <faure () kde ! org>
Date:       2006-01-02 11:48:29
Message-ID: 200601021248.29880.faure () kde ! org
[Download RAW message or body]

On Monday 02 January 2006 12:11, Richard Lärkäng wrote:
> On Monday 02 January 2006 11:28, David Faure wrote:
> > Hmm. If we want to get rid of KApplication for kde4, then we'll need to
> > simply pass all argc/argv from main to QApp, and then
> > KCmdLineArgs::qt_arg[cv] can go away. I'm not sure why KCmdLineArgs took
> > care of filtering out non-qt options, when Qt can do that by itself
> > already.
> 
> In the apidocs for qt_argv it says:
> 
> "Returns command line options for consumption by Qt after parsing them in a 
> way that is consistent with KDE's general command line handling. In 
> particular this ensures that Qt command line options can be specified as 
> either -option or --option and that any options specified after '--' will be 
> ignored."

Ah, thanks; should have looked that up.

Well, so if we want to keep this, we need KApplication to stay indeed - for the normal
case (KDE program with standard Qt/KDE command-line options).

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic