From 3028d13439f241a9b05a7de3b32fd6c2ee16cb8d Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@digia.com> Date: Wed, 6 Mar 2013 09:51:13 +0100 Subject: [PATCH] Aero-Style-QWizard: Remove special handling in Qt Designer. The wizard now behaves nicely when used as a child widget. Task-number: QTBUG-29904 Change-Id: I2e9705eb4197b3411c9e072d0d5c05a97df8d47f Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> --- src/designer/src/lib/shared/widgetfactory.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/designer/src/lib/shared/widgetfactory.cpp b/src/designer/src/lib/shared/widgetfactory.cpp index 28f488642..1cadf1b68 100644 --- a/src/designer/src/lib/shared/widgetfactory.cpp +++ b/src/designer/src/lib/shared/widgetfactory.cpp @@ -594,16 +594,6 @@ void WidgetFactory::initializeCommon(QWidget *widget) const // Apply style if (m_currentStyle) widget->setStyle(m_currentStyle); - // Prevent the wizard from emulating the Windows Vista Theme. - // This theme (in both Aero and Basic mode) is tricky to - // emulate properly in designer due to 1) the manipulation of the non-client area of - // the top-level window, and 2) the upper-right location of the Back button. - // The wizard falls back to QWizard::ModernStyle whenever the Vista theme - // would normally apply. - if (QWizard *wizard = qobject_cast<QWizard *>(widget)) { - wizard->setProperty("_q_wizard_vista_off", QVariant(true)); - return; - } } // Necessary initializations for preview objects -- GitLab