diff options
author | jasplin <qt-info@nokia.com> | 2009-05-18 12:30:09 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-05-18 12:37:27 (GMT) |
commit | 0ff3bb25df3626a8112def75fc3ff048c70ebdb2 (patch) | |
tree | 3361fa90b167400547fd50b87ac502272c15e02b /src/gui/dialogs/qwizard_win_p.h | |
parent | 7008bfe80e0466ed2978b39e7e698bbd52fb690f (diff) | |
download | Qt-0ff3bb25df3626a8112def75fc3ff048c70ebdb2.zip Qt-0ff3bb25df3626a8112def75fc3ff048c70ebdb2.tar.gz Qt-0ff3bb25df3626a8112def75fc3ff048c70ebdb2.tar.bz2 |
Fixed crash in QWizard running on old Windows systems.
When compiling the QWizard on a Windows system where
QT_NO_STYLE_WINDOWSVISTA is not set and running the app
on an old system that has no Vista support, the app would
crash in the paint event of the Vista Back button. In this
scenario, the Vista Back button is not needed (i.e. the
regular Back button next to the Next button is used), so
the fix is simply to avoid instanciating it altogether.
Reviewed-by: janarve
Task-number: 252662
Diffstat (limited to 'src/gui/dialogs/qwizard_win_p.h')
-rw-r--r-- | src/gui/dialogs/qwizard_win_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/dialogs/qwizard_win_p.h b/src/gui/dialogs/qwizard_win_p.h index cbb3b17..148be26 100644 --- a/src/gui/dialogs/qwizard_win_p.h +++ b/src/gui/dialogs/qwizard_win_p.h @@ -94,6 +94,8 @@ public: void resizeEvent(QResizeEvent *event); void paintEvent(QPaintEvent *event); QVistaBackButton *backButton() const { return backButton_; } + void disconnectBackButton() { if (backButton_) backButton_->disconnect(); } + void hideBackButton() { if (backButton_) backButton_->hide(); } void setWindowPosHack(); QColor basicWindowFrameColor(); enum VistaState { VistaAero, VistaBasic, Classic, Dirty }; |