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:
@@ -82,19 +82,18 @@ QmlApplicationWizard::QmlApplicationWizard()
|
||||
setDescription(tr("Creates a Qt Quick UI project."));
|
||||
}
|
||||
|
||||
QWizard *QmlApplicationWizard::createWizardDialog(QWidget *parent,
|
||||
const WizardDialogParameters &wizardDialogParameters) const
|
||||
QWizard *QmlApplicationWizard::create(QWidget *parent, const WizardDialogParameters ¶meters) const
|
||||
{
|
||||
QmlApplicationWizardDialog *wizardDialog = new QmlApplicationWizardDialog(parent, wizardDialogParameters);
|
||||
QmlApplicationWizardDialog *wizardDialog = new QmlApplicationWizardDialog(parent, parameters);
|
||||
|
||||
connect(wizardDialog, SIGNAL(projectParametersChanged(QString,QString)), m_qmlApp,
|
||||
SLOT(setProjectNameAndBaseDirectory(QString,QString)));
|
||||
|
||||
wizardDialog->setPath(wizardDialogParameters.defaultPath());
|
||||
wizardDialog->setPath(parameters.defaultPath());
|
||||
|
||||
wizardDialog->setProjectName(QmlApplicationWizardDialog::uniqueProjectName(wizardDialogParameters.defaultPath()));
|
||||
wizardDialog->setProjectName(QmlApplicationWizardDialog::uniqueProjectName(parameters.defaultPath()));
|
||||
|
||||
foreach (QWizardPage *page, wizardDialogParameters.extensionPages())
|
||||
foreach (QWizardPage *page, parameters.extensionPages())
|
||||
applyExtensionPageShortTitle(wizardDialog, wizardDialog->addPage(page));
|
||||
|
||||
return wizardDialog;
|
||||
|
||||
@@ -66,8 +66,7 @@ public:
|
||||
static void createInstances(ExtensionSystem::IPlugin *plugin);
|
||||
|
||||
private:
|
||||
QWizard *createWizardDialog(QWidget *parent,
|
||||
const Core::WizardDialogParameters &wizardDialogParameters) const;
|
||||
QWizard *create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const;
|
||||
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
|
||||
void writeUserFile(const QString &fileName) const;
|
||||
bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user