diff options
author | Michal Marek <mmarek@suse.cz> | 2010-09-01 11:39:27 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-09-06 07:31:50 -0400 |
commit | 76a136c4a6bde90af8c899701cc1f0997af2f60a (patch) | |
tree | 3088c9600480b9acb2b8517ed34833dae32fb2d0 /scripts/kconfig/qconf.cc | |
parent | 133c5f7c10e4552ba41bcf03b9bda6c4e3413804 (diff) |
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>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | 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 88d3874ca8f4..a04e4517ead1 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -1274,8 +1274,14 @@ ConfigMainWindow::ConfigMainWindow(void) | |||
1274 | char title[256]; | 1274 | char title[256]; |
1275 | 1275 | ||
1276 | QDesktopWidget *d = configApp->desktop(); | 1276 | QDesktopWidget *d = configApp->desktop(); |
1277 | snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"), | 1277 | snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration%s"), |
1278 | getenv("KERNELVERSION")); | 1278 | getenv("KERNELVERSION"), |
1279 | #if QT_VERSION < 0x040000 | ||
1280 | " (Qt3)" | ||
1281 | #else | ||
1282 | "" | ||
1283 | #endif | ||
1284 | ); | ||
1279 | setCaption(title); | 1285 | setCaption(title); |
1280 | 1286 | ||
1281 | width = configSettings->readNumEntry("/window width", d->width() - 64); | 1287 | width = configSettings->readNumEntry("/window width", d->width() - 64); |