浏览代码

xconfig: Change the titlebar if using Qt3

Qt4 is now used by default and will get more testing. In case someone
still uses Qt3 and reports a bug, make it easy to recognize that this is
Qt3.

Acked-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Michal Marek 14 年之前
父节点
当前提交
76a136c4a6
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      scripts/kconfig/qconf.cc

+ 8 - 2
scripts/kconfig/qconf.cc

@@ -1274,8 +1274,14 @@ ConfigMainWindow::ConfigMainWindow(void)
 	char title[256];
 	char title[256];
 
 
 	QDesktopWidget *d = configApp->desktop();
 	QDesktopWidget *d = configApp->desktop();
-	snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"),
-		getenv("KERNELVERSION"));
+	snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration%s"),
+		getenv("KERNELVERSION"),
+#if QT_VERSION < 0x040000
+		" (Qt3)"
+#else
+		""
+#endif
+		);
 	setCaption(title);
 	setCaption(title);
 
 
 	width = configSettings->readNumEntry("/window width", d->width() - 64);
 	width = configSettings->readNumEntry("/window width", d->width() - 64);