diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-03 18:00:08 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-07 16:26:10 +0100 |
commit | 821eab6c52d5587b233a409f3086e223c7a270b2 (patch) | |
tree | 695875859f46982a950cf5f78b88fae11bc706af /src/plugins/qt4projectmanager/wizards/testwizard.cpp | |
parent | 88d95250ef9d13b9602c64d1ca6ad05529c072ba (diff) | |
download | qt-creator-821eab6c52d5587b233a409f3086e223c7a270b2.tar.gz |
Wizards: refactoring - adding WizardDialogParameters
The Wizards itself (derived from IWizard) and the dialogs
implementing the wizards were quite discoupled.
Since I want to add parameters that are delivered from
IWizard::run to the dialog a I added WizardDialogParameters.
Examples of paramters I want to add are the choosen platform
and the choosen subOption/template for this wizard.
Change-Id: I9c0ae2901e3d46d3c36a3f433f4d7d508a6ba74e
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'src/plugins/qt4projectmanager/wizards/testwizard.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/wizards/testwizard.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qt4projectmanager/wizards/testwizard.cpp b/src/plugins/qt4projectmanager/wizards/testwizard.cpp index 0940297341..a2ca0a1b55 100644 --- a/src/plugins/qt4projectmanager/wizards/testwizard.cpp +++ b/src/plugins/qt4projectmanager/wizards/testwizard.cpp @@ -60,12 +60,11 @@ TestWizard::TestWizard() : } QWizard *TestWizard::createWizardDialog(QWidget *parent, - const QString &defaultPath, - const WizardPageList &extensionPages) const + const Core::WizardDialogParameters &wizardDialogParameters) const { - TestWizardDialog *dialog = new TestWizardDialog(displayName(), icon(), extensionPages, parent); - dialog->setPath(defaultPath); - dialog->setProjectName(TestWizardDialog::uniqueProjectName(defaultPath)); + TestWizardDialog *dialog = new TestWizardDialog(displayName(), icon(), parent, wizardDialogParameters); + dialog->setPath(wizardDialogParameters.defaultPath()); + dialog->setProjectName(TestWizardDialog::uniqueProjectName(wizardDialogParameters.defaultPath())); return dialog; } |