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:
parent
3fa77de5c9
commit
c4a07f039d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user