From: Randy Dunlap Date: Sat, 20 Oct 2007 18:18:47 +0000 (-0700) Subject: kconfig: set title bar in xconfig X-Git-Tag: v2.6.24-rc1~68^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a54bb701c248d65f761d366f94f2809abdc39f04;p=platform%2Fkernel%2Flinux-3.10.git kconfig: set title bar in xconfig Put kernel version info on title bar in xconfig (qconf) instead of defaulting to "qconf". Signed-off-by: Randy Dunlap Signed-off-by: Sam Ravnborg --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e4eeb59a..b9bb32d 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1274,8 +1274,12 @@ ConfigMainWindow::ConfigMainWindow(void) QMenuBar* menu; bool ok; int x, y, width, height; + char title[256]; QWidget *d = configApp->desktop(); + snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"), + getenv("KERNELVERSION")); + setCaption(title); width = configSettings->readNumEntry("/window width", d->width() - 64); height = configSettings->readNumEntry("/window height", d->height() - 64);