Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762440AbXJTSO2 (ORCPT ); Sat, 20 Oct 2007 14:14:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756506AbXJTSOU (ORCPT ); Sat, 20 Oct 2007 14:14:20 -0400 Received: from xenotime.net ([66.160.160.81]:35450 "HELO xenotime.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755896AbXJTSOT (ORCPT ); Sat, 20 Oct 2007 14:14:19 -0400 Date: Sat, 20 Oct 2007 11:14:16 -0700 From: Randy Dunlap To: Sam Ravnborg Cc: lkml , zippel@linux-m68k.org, linux-kbuild Subject: Re: [PATCH] xconfig: set title bar Message-Id: <20071020111416.339efb79.rdunlap@xenotime.net> In-Reply-To: <20071020181202.GA8334@uranus.ravnborg.org> References: <20071019145528.1cdeb007.randy.dunlap@oracle.com> <20071020171403.GD6855@uranus.ravnborg.org> <20071020181202.GA8334@uranus.ravnborg.org> Organization: YPO4 X-Mailer: Sylpheed 2.4.6 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2039 Lines: 54 On Sat, 20 Oct 2007 20:12:02 +0200 Sam Ravnborg wrote: > 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 > > > > > > 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 " 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. Yes, I was going to make that same comment. I'll have qconf.cc using the same title as gconfig and menuconfig soon... --- ~Randy [switched email addr due to some odd mail server problem] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/