diff options
| author | Friedemann Kleint <[email protected]> | 2013-03-05 16:26:03 +0100 |
|---|---|---|
| committer | The Qt Project <[email protected]> | 2013-03-06 21:50:28 +0100 |
| commit | 3c329b09fab98087efa6f23905257cba5f665bcd (patch) | |
| tree | 506a8007d160e015fd424a5c575dfa89449c14bc /src/widgets/dialogs/qwizard_win.cpp | |
| parent | c2530a0f59f6bc7dc31e72a06851b8821c9ee5a2 (diff) | |
Aero-Style-QWizard: Set custom margins only for Areo-Style.
Task-number: QTBUG-29904
Change-Id: Ifaf4d5e692f97436535feb1af44dc29d3512c5ea
Reviewed-by: Oliver Wolff <[email protected]>
Diffstat (limited to 'src/widgets/dialogs/qwizard_win.cpp')
| -rw-r--r-- | src/widgets/dialogs/qwizard_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dialogs/qwizard_win.cpp b/src/widgets/dialogs/qwizard_win.cpp index ec04fed702a..42bdb8369ff 100644 --- a/src/widgets/dialogs/qwizard_win.cpp +++ b/src/widgets/dialogs/qwizard_win.cpp @@ -269,13 +269,13 @@ QVistaHelper::~QVistaHelper() --instanceCount; } -void QVistaHelper::updateCustomMargins() +void QVistaHelper::updateCustomMargins(bool vistaMargins) { if (QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS8) return; // Negative margins are not supported on Windows 8. if (QWindow *window = wizard->windowHandle()) { // Reduce top frame to zero since we paint it ourselves. - const QMargins customMargins = vistaState() == VistaAero ? + const QMargins customMargins = vistaMargins ? QMargins(0, -titleBarSize(), 0, 0) : QMargins(); const QVariant customMarginsV = qVariantFromValue(customMargins); // The dynamic property takes effect when creating the platform window. |
