diff options
author | Andy Shaw <andy.shaw@digia.com> | 2013-06-10 08:49:48 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-10 21:35:39 (GMT) |
commit | c894beb04096def00d53918e4079d0066d03afa7 (patch) | |
tree | 6e16ba2266f2178aa05831f7c7f63920f37f57bd /src | |
parent | 952b046ba5bc99986f747729681914e21f8fb8b0 (diff) | |
download | Qt-c894beb04096def00d53918e4079d0066d03afa7.zip Qt-c894beb04096def00d53918e4079d0066d03afa7.tar.gz Qt-c894beb04096def00d53918e4079d0066d03afa7.tar.bz2 |
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')
-rw-r--r-- | src/gui/dialogs/qwizard_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp index 51cb9d5..9cd6292 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) |