kconfig: set title bar in xconfig
authorRandy Dunlap <rdunlap@xenotime.net>
Sat, 20 Oct 2007 18:18:47 +0000 (11:18 -0700)
committerSam Ravnborg <sam@neptun.(none)>
Sat, 20 Oct 2007 18:16:50 +0000 (20:16 +0200)
Put kernel version info on title bar in xconfig (qconf) instead of
defaulting to "qconf".

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/qconf.cc

index e4eeb59a8c24aae7065144f1618220d2f22b8cec..b9bb32dfd62866527a8a414164e82c92721eea83 100644 (file)
@@ -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);