forked from qt-creator/qt-creator
ProjectExplorer: Remove Project manager parameter from some constructors
Can be done generically when creating projects. The only wart is the use from BaseQmakeProjectWizardDialog::writeUserFile. Change-Id: Ie98c9f88ec142e82443e204a0075e3ae9e163752 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
||||
class PythonProject : public Project
|
||||
{
|
||||
public:
|
||||
PythonProject(PythonProjectManager *manager, const QString &filename);
|
||||
explicit PythonProject(const QString &filename);
|
||||
|
||||
QString displayName() const override { return m_projectName; }
|
||||
PythonProjectManager *projectManager() const override;
|
||||
@@ -370,7 +370,7 @@ Project *PythonProjectManager::openProject(const QString &fileName, QString *err
|
||||
return 0;
|
||||
}
|
||||
|
||||
return new PythonProject(this, fileName);
|
||||
return new PythonProject(fileName);
|
||||
}
|
||||
|
||||
class PythonRunConfigurationFactory : public IRunConfigurationFactory
|
||||
@@ -443,10 +443,9 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
PythonProject::PythonProject(PythonProjectManager *manager, const QString &fileName)
|
||||
PythonProject::PythonProject(const QString &fileName)
|
||||
{
|
||||
setId(PythonProjectId);
|
||||
setProjectManager(manager);
|
||||
setDocument(new PythonProjectFile(this, fileName));
|
||||
DocumentManager::addDocument(document());
|
||||
setRootProjectNode(new PythonProjectNode(this));
|
||||
|
||||
Reference in New Issue
Block a user