summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-03-06 09:51:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 15:09:15 +0100
commit3028d13439f241a9b05a7de3b32fd6c2ee16cb8d (patch)
tree1eab1d42d3fea5965acca74ecb12207c98c077a2
parentb2dec1e4ecdaa33e8f7d933caf0558a31dfc681f (diff)
downloadqttools-3028d13439f241a9b05a7de3b32fd6c2ee16cb8d.tar.gz
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>
-rw-r--r--src/designer/src/lib/shared/widgetfactory.cpp10
1 files changed, 0 insertions, 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