提交 a54bb701 编写于 作者: R Randy Dunlap 提交者: 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: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册