Update Wizards to new signature

Seems like I missed some the first time round. Sorry for that!
This commit is contained in:
Tobias Hunger
2010-02-18 16:10:56 +01:00
parent cdf2ec6f11
commit 93d3205459
6 changed files with 9 additions and 6 deletions

View File

@@ -214,8 +214,9 @@ Core::GeneratedFiles GenericProjectWizard::generateFiles(const QWizard *w,
return files; return files;
} }
bool GenericProjectWizard::postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage) bool GenericProjectWizard::postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage)
{ {
Q_UNUSED(w);
// Post-Generate: Open the project // Post-Generate: Open the project
const QString proFileName = l.back().path(); const QString proFileName = l.back().path();
if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) { if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) {

View File

@@ -82,7 +82,7 @@ protected:
virtual Core::GeneratedFiles generateFiles(const QWizard *w, virtual Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
virtual bool postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage); virtual bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
bool isValidDir(const QFileInfo &fileInfo) const; bool isValidDir(const QFileInfo &fileInfo) const;

View File

@@ -154,8 +154,9 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
return files; return files;
} }
bool QmlProjectApplicationWizard::postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage) bool QmlProjectApplicationWizard::postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage)
{ {
Q_UNUSED(w);
// Post-Generate: Open the project // Post-Generate: Open the project
const QString proFileName = l.back().path(); const QString proFileName = l.back().path();
if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) { if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) {

View File

@@ -69,7 +69,7 @@ protected:
virtual Core::GeneratedFiles generateFiles(const QWizard *w, virtual Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
virtual bool postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage); virtual bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
}; };
} // end of namespace Internal } // end of namespace Internal

View File

@@ -170,8 +170,9 @@ Core::GeneratedFiles QmlProjectImportWizard::generateFiles(const QWizard *w,
return files; return files;
} }
bool QmlProjectImportWizard::postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage) bool QmlProjectImportWizard::postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage)
{ {
Q_UNUSED(w);
// Post-Generate: Open the project // Post-Generate: Open the project
const QString proFileName = l.back().path(); const QString proFileName = l.back().path();
if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) { if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFileName)) {

View File

@@ -83,7 +83,7 @@ protected:
virtual Core::GeneratedFiles generateFiles(const QWizard *w, virtual Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
virtual bool postGenerateFiles(const Core::GeneratedFiles &l, QString *errorMessage); virtual bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
}; };
} // end of namespace Internal } // end of namespace Internal