[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Removing help-qt options?
From: Allen Winter <winterz () verizon ! net>
Date: 2004-05-23 14:21:18
Message-ID: 200405231021.18853.winterz () verizon ! net
[Download RAW message or body]
On Sunday 23 May 2004 09:56 am, Kurt V. Hindenburg wrote:
> In konsole, only 3 qt options are used. It would be helpful to remove
> the rest from help-qt, as not to confuse the user.
>
> As a stop-gap, I've suggested:
>
> KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt");
> if(qtargs->isSet("background"))
> KCmdLineArgs::usage(i18n("--background is an invalid option.\n"));
> if(qtargs->isSet("foreground"))
> KCmdLineArgs::usage(i18n("--foreground is an invalid option.\n"));
>
> But this doesn't do anything for --help-qt output and you have to list
> all the invalid options.
>
> The only thing I could think of is adding a new function:
>
> void KCmdLineArgs::removeSpecificArg(const char *id, const char *arg)
>
> ie. remove SpecificArgs("qt", "foreground")
>
> Some other way to accomplish this?
>
You might look at the source code for konsolekalendar in kdepim.
I successfully removed qt and kde options.
Regards,
Allen
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic