aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/wizard.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-12-05 13:41:20 +0100
committerTim Jenssen <tim.jenssen@qt.io>2016-12-05 15:55:53 +0000
commit7e10f84c2e0a6cc2f9a51241b1752d2199b56f06 (patch)
tree99c0a5df3240b54f511b9d02e4ced1bbf953c0f8 /src/libs/utils/wizard.cpp
parenteaa12ce515a3e03eac2758fa67500b899b0ca398 (diff)
Utils: Simplify code in Wizard
Change-Id: I79056601c9819ba127c186132557c3310a5754a5 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs/utils/wizard.cpp')
-rw-r--r--src/libs/utils/wizard.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/libs/utils/wizard.cpp b/src/libs/utils/wizard.cpp
index 8e747ab0b1d..aea1adc3064 100644
--- a/src/libs/utils/wizard.cpp
+++ b/src/libs/utils/wizard.cpp
@@ -301,25 +301,15 @@ void LinearProgressWidget::enableUpdates()
class WizardPrivate
{
- Wizard *q_ptr;
- Q_DECLARE_PUBLIC(Wizard)
-
public:
- WizardPrivate()
- :
- m_automaticProgressCreation(true),
- m_wizardProgress(0)
- {
- }
- bool m_automaticProgressCreation;
- WizardProgress *m_wizardProgress;
+ bool m_automaticProgressCreation = true;
+ WizardProgress *m_wizardProgress = nullptr;
QSet<QString> m_fieldNames;
};
Wizard::Wizard(QWidget *parent, Qt::WindowFlags flags) :
QWizard(parent, flags), d_ptr(new WizardPrivate)
{
- d_ptr->q_ptr = this;
d_ptr->m_wizardProgress = new WizardProgress(this);
connect(this, &QWizard::currentIdChanged, this, &Wizard::_q_currentPageChanged);
connect(this, &QWizard::pageAdded, this, &Wizard::_q_pageAdded);