Commit a54bb701 authored by Randy Dunlap's avatar Randy Dunlap Committed by Sam Ravnborg

kconfig: set title bar in xconfig

Put kernel version info on title bar in xconfig (qconf) instead of
defaulting to "qconf".
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 0b463ff1
...@@ -1274,8 +1274,12 @@ ConfigMainWindow::ConfigMainWindow(void) ...@@ -1274,8 +1274,12 @@ ConfigMainWindow::ConfigMainWindow(void)
QMenuBar* menu; QMenuBar* menu;
bool ok; bool ok;
int x, y, width, height; int x, y, width, height;
char title[256];
QWidget *d = configApp->desktop(); 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); width = configSettings->readNumEntry("/window width", d->width() - 64);
height = configSettings->readNumEntry("/window height", d->height() - 64); height = configSettings->readNumEntry("/window height", d->height() - 64);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment