diff options
Diffstat (limited to 'src/gui/dialogs/qwizard.cpp')
-rw-r--r-- | src/gui/dialogs/qwizard.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/gui/dialogs/qwizard.cpp b/src/gui/dialogs/qwizard.cpp index 64588d2..0f6d353 100644 --- a/src/gui/dialogs/qwizard.cpp +++ b/src/gui/dialogs/qwizard.cpp @@ -1343,32 +1343,19 @@ bool QWizardPrivate::ensureButton(QWizard::WizardButton which) const QAction *softKey = new QAction(pushButton->text(), antiFlickerWidget); QAction::SoftKeyRole softKeyRole; switch(which) { - case QWizard::BackButton: - softKeyRole = QAction::PreviousSoftKey; - break; case QWizard::NextButton: - softKeyRole = QAction::NextSoftKey; - break; - case QWizard::CommitButton: - softKeyRole = QAction::EndEditSoftKey; - break; case QWizard::FinishButton: - softKeyRole = QAction::FinishSoftKey; - break; case QWizard::CancelButton: - softKeyRole = QAction::CancelSoftKey; + softKeyRole = QAction::NegativeSoftKey; break; + case QWizard::BackButton: + case QWizard::CommitButton: case QWizard::HelpButton: - softKeyRole = QAction::ViewSoftKey; - break; case QWizard::CustomButton1: - softKeyRole = QAction::SelectSoftKey; - break; case QWizard::CustomButton2: - softKeyRole = QAction::SelectSoftKey; - break; case QWizard::CustomButton3: - softKeyRole = QAction::SelectSoftKey; + default: + softKeyRole = QAction::PositiveSoftKey; break; } softKey->setSoftKeyRole(softKeyRole); |