From c894beb04096def00d53918e4079d0066d03afa7 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 10 Jun 2013 10:49:48 +0200 Subject: 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 --- src/gui/dialogs/qwizard_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/dialogs') 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) -- cgit v1.2.3