xconfig: Change the titlebar if using Qt3
authorMichal Marek <mmarek@suse.cz>
Wed, 1 Sep 2010 15:39:27 +0000 (17:39 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 6 Sep 2010 11:31:50 +0000 (13:31 +0200)
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>
scripts/kconfig/qconf.cc

index 88d3874ca8f4f88655f85415c8d0ff26a35a4302..a04e4517ead1b330cd00478aede6ec69bcea269d 100644 (file)
@@ -1274,8 +1274,14 @@ ConfigMainWindow::ConfigMainWindow(void)
        char title[256];
 
        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);
 
        width = configSettings->readNumEntry("/window width", d->width() - 64);