[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071020171403.GD6855@uranus.ravnborg.org>
Date: Sat, 20 Oct 2007 19:14:03 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: Randy Dunlap <randy.dunlap@...cle.com>
Cc: lkml <linux-kernel@...r.kernel.org>, zippel@...ux-m68k.org
Subject: Re: [PATCH] xconfig: set title bar
On Fri, Oct 19, 2007 at 02:55:28PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@...cle.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.
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists