summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-06-10 10:49:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-10 23:35:39 +0200
commitc894beb04096def00d53918e4079d0066d03afa7 (patch)
tree6e16ba2266f2178aa05831f7c7f63920f37f57bd /src/gui/dialogs
parent952b046ba5bc99986f747729681914e21f8fb8b0 (diff)
Only use Vista style for Wizards when on Vista or later
If the application is running in XP compatibility mode then we don't want to show the Vista style for the wizard as this will include a back button that should not exist. Therefore we check the platform it is on before trying to resolve the symbols so that it is correct. Change-Id: Ic7249e06461068fe08184a22bb750ab8736ebc3f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qwizard_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp
index 51cb9d500a..9cd62927bb 100644
--- a/src/gui/dialogs/qwizard_win.cpp
+++ b/src/gui/dialogs/qwizard_win.cpp
@@ -248,7 +248,7 @@ QVistaHelper::QVistaHelper(QWizard *wizard)
, wizard(wizard)
, backButton_(0)
{
- is_vista = resolveSymbols();
+ is_vista = QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && resolveSymbols();
if (instanceCount++ == 0)
cachedVistaState = Dirty;
if (is_vista)