[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Patch to help with Qt command line args
From: David Faure <david () mandrakesoft ! com>
Date: 2000-04-26 19:21:13
[Download RAW message or body]
Thanks for the patch.
Hmm, you added all of them.
At least title makes no sense (KDE has --caption) and I'm not sure
why geometry doesn't work but I'll commit the rest nontheless.
-style : not sure if it picks up KDE styles too ?
In this case the comment is wrong...
On Wed, Apr 26, 2000 at 12:14:05PM -0500, Mike Rolig wrote:
> Here's a patch to kdelibs/kdecore/kapp.cpp to add the other Qt command
> line arguments, so they are accepted by KCmdLineArgs.
>
> Qt command line arguments still don't work (at least not geometry).
>
> I tried with kcalc, and I added argc, argv to the KApplication
> constructor, and they do get sent to QApplication, where Qt must do its
> thing. I tested the Qt hello example with "-geometry -0+0" which puts
> it up in the upper left hand corner. This works just fine. But when I
> try Kcalc it does not work.
>
> I don't have a good idea how all these parameters get dealt with and
> deleted here and there. Who ever is familiar with these parts of KDE
> please take a look. It is annoying to not have -geometry working. I'm
> not sure if Qt is working properly and setting geometry, then having KDE
> override this or what. But all of that is burried in the nitty gritty X
> stuff.
>
> Thanks!
>
> Mike
> --- kapp.cpp Sun Apr 23 22:38:34 2000
> +++ /home/mrolig/junk/kapp.cpp Tue Apr 25 23:10:52 2000
> @@ -717,6 +717,22 @@
> { "session <sessionId>", I18N_NOOP("Restore the application for the given \
> 'sessionId'"), 0}, { "cmap", I18N_NOOP("Causes the application to install a private \
> color map on an 8-bit display"), 0}, { "ncols <count>", I18N_NOOP("Limits the \
> number of colors allocated in the color cube on a 8-bit display,\nif the \
> application is using the QApplication::ManyColor color specification"), 0}, + { \
> "nograb", I18N_NOOP("tells Qt to never grab the mouse or the keyboard."), 0}, + { \
> "dograb", I18N_NOOP("running under a debugger can cause an implicit -nograb, use \
> -dograb to override."), 0}, + { "sync", I18N_NOOP("switches to synchronous mode \
> for debugging."), 0}, + { "style <style>", I18N_NOOP("sets the application GUI \
> style. Possible values are motif, windows, and platinum."), 0} + { "geometry \
> <geometry>", I18N_NOOP("sets the client geometry of the main widget."), 0}, + { \
> "fn <font>", I18N_NOOP("see font."), 0}, + { "font <font>", I18N_NOOP("defines \
> the application font."), 0}, + { "bg <color>", I18N_NOOP("see background."), 0},
> + { "background <color>", I18N_NOOP("sets the default background color and an \
> application palette (light and dark shades are calculated)."), 0}, + { "fg \
> <color>", I18N_NOOP("see foreground."), 0}, + { "foreground <color>", \
> I18N_NOOP("sets the default foreground color."), 0}, + { "btn <color>", \
> I18N_NOOP("see button."), 0}, + { "button <color>", I18N_NOOP("sets the default \
> button color."), 0}, + { "name <name>", I18N_NOOP("sets the application name."), \
> 0}, + { "title <title>", I18N_NOOP("sets the application title (caption)."), 0},
> + { "visual TrueColor", I18N_NOOP("forces the application to use a TrueColor \
> visual on an 8-bit display."), 0}, { 0, 0, 0 }
> };
> // NOTE: Other Qt options include (color options omitted) :
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic