Aero-Style-QWizard: Hide/Show back-button correctly.

Task-number: QTBUG-29904

Change-Id: Id832594be4bc15c868f11bd762390803c8f9c158
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
Friedemann Kleint 2013-03-05 16:53:30 +01:00 committed by The Qt Project
parent 3fa77de5c9
commit c4a07f039d
2 changed files with 4 additions and 1 deletions

View File

@ -1547,6 +1547,7 @@ bool QWizardPrivate::handleAeroStyleChange()
0, vistaHelper->topOffset() // ### should ideally work without the '+ 1'
- qMin(vistaHelper->topOffset(), vistaHelper->topPadding() + 1));
vistaMargins = true;
vistaHelper->backButton()->show();
} else {
if (isWindow)
vistaHelper->setDWMTitleBar(QVistaHelper::NormalTitleBar);

View File

@ -256,8 +256,10 @@ QVistaHelper::QVistaHelper(QWizard *wizard)
is_vista = resolveSymbols();
if (instanceCount++ == 0)
cachedVistaState = Dirty;
if (is_vista)
if (is_vista) {
backButton_ = new QVistaBackButton(wizard);
backButton_->hide();
}
// Handle diff between Windows 7 and Vista
iconSpacing = QStyleHelper::dpiScaled(7);