xconfig: Change the titlebar if using Qt3

Extract from;
[PATCH] xconfig: Change the titlebar if using Qt3
September 01st, 2010 - 11:50 am ET by Michal Marek | Report spam
Help Create a new topic
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

Cc: Alexander Stein
Signed-off-by: Michal Marek

scripts/kconfig/qconf.cc | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 88d3874..a04e451 100644
+++ b/scripts/kconfig/qconf.cc
@@ -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)"
+ ""
+ );

width = configSettings->readNumEntry("/window width", d->width() - 64);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Extract from:

Kconfig infrastructure rebased against 2.6.38-rc3, bringing
misc fixes. 'xconfig' now uses Qt4 rather than Qt3.