forked from qt-creator/qt-creator
BaseFileWizardFactory: rename createWizardDialog method to create
Unify name of parameters object that gets passed into the method while at it anyway. Change-Id: I9cfdfe3b7dcdbd5e083b3b91922053be3a63b081 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -122,13 +122,12 @@ QString JsFileWizard::fileContents(const QString &, bool statelessLibrary) const
|
||||
return contents;
|
||||
}
|
||||
|
||||
QWizard *JsFileWizard::createWizardDialog(QWidget *parent,
|
||||
const Core::WizardDialogParameters &wizardDialogParameters) const
|
||||
QWizard *JsFileWizard::create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const
|
||||
{
|
||||
JsFileWizardDialog *wizardDialog = new JsFileWizardDialog(parent);
|
||||
wizardDialog->setWindowTitle(tr("New %1").arg(displayName()));
|
||||
wizardDialog->setPath(wizardDialogParameters.defaultPath());
|
||||
foreach (QWizardPage *p, wizardDialogParameters.extensionPages())
|
||||
wizardDialog->setPath(parameters.defaultPath());
|
||||
foreach (QWizardPage *p, parameters.extensionPages())
|
||||
BaseFileWizardFactory::applyExtensionPageShortTitle(wizardDialog, wizardDialog->addPage(p));
|
||||
return wizardDialog;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user