diff options
author | Randy Dunlap | 2007-10-20 20:18:47 +0200 |
---|---|---|
committer | Sam Ravnborg | 2007-10-20 20:16:50 +0200 |
commit | a54bb701c248d65f761d366f94f2809abdc39f04 (patch) | |
tree | 04e71f19ec3ed5b8b76dd6143c83302849588021 /scripts | |
parent | kbuild: fix toplevel Makefile/depmod (diff) | |
download | kernel-qcow2-linux-a54bb701c248d65f761d366f94f2809abdc39f04.tar.gz kernel-qcow2-linux-a54bb701c248d65f761d366f94f2809abdc39f04.tar.xz kernel-qcow2-linux-a54bb701c248d65f761d366f94f2809abdc39f04.zip |
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 <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/qconf.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e4eeb59a8c24..b9bb32dfd628 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); |