Skip to content

Commit

Permalink
xconfig: Change the titlebar if using Qt3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Marek committed Sep 6, 2010
1 parent 133c5f7 commit 76a136c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 76a136c

Please sign in to comment.