From: Sam Ravnborg <sam@ravnborg.org>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
zippel@linux-m68k.org,
linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: [PATCH] xconfig: set title bar
Date: Sat, 20 Oct 2007 20:12:02 +0200 [thread overview]
Message-ID: <20071020181202.GA8334@uranus.ravnborg.org> (raw)
In-Reply-To: <20071020171403.GD6855@uranus.ravnborg.org>
On Sat, Oct 20, 2007 at 07:14:03PM +0200, Sam Ravnborg wrote:
> On Fri, Oct 19, 2007 at 02:55:28PM -0700, Randy Dunlap wrote:
> > From: Randy Dunlap <randy.dunlap@oracle.com>
> >
> > menuconfig and gconfig already place a title (or caption) on the top
> > bar of their window (or whatever that is properly called). However,
> > qconf (xconfig) just says "qconf". I tried to find a Qt API to set
> > the title but did not find one, so set the program title (caption)
> > by using the "-title <caption>" command line option instead.
>
> I found this one to work:
> diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
> index e4eeb59..4905cd1 100644
> --- a/scripts/kconfig/qconf.cc
> +++ b/scripts/kconfig/qconf.cc
> @@ -1277,6 +1277,7 @@ ConfigMainWindow::ConfigMainWindow(void)
>
> QWidget *d = configApp->desktop();
>
> + setCaption("hello my little world");
> width = configSettings->readNumEntry("/window width", d->width() - 64);
> height = configSettings->readNumEntry("/window height", d->height() - 64);
> resize(width, height);
>
> We should show the prompt associated with mainmenu here.
After a closer looks it revealed that kconfig does not even save
the mainmenu prompt?!??!
See following snippet from zconf.y:
stmt_list:
/* empty */
| stmt_list common_stmt
| stmt_list choice_stmt
| stmt_list menu_stmt
| stmt_list T_MAINMENU prompt nl
So it seems no frontend displays the mainmenu prompt.
Sam
next prev parent reply other threads:[~2007-10-20 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 21:55 [PATCH] xconfig: set title bar Randy Dunlap
2007-10-20 17:14 ` Sam Ravnborg
2007-10-20 18:12 ` Sam Ravnborg [this message]
2007-10-20 18:14 ` Randy Dunlap
2007-10-20 18:18 ` Randy Dunlap
2007-10-20 18:30 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071020181202.GA8334@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.