Project: Improve default implementation of Project::needsConfiguration

Change-Id: Ic4d227334d818658f179c0589462551509274c17
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2018-03-09 13:30:13 +01:00
parent 964476983e
commit 835d4e92f3
12 changed files with 11 additions and 21 deletions

View File

@@ -813,7 +813,7 @@ void Project::setNamedSettings(const QString &name, const QVariant &value)
bool Project::needsConfiguration() const
{
return false;
return d->m_targets.isEmpty();
}
void Project::configureAsExampleProject(const QSet<Core::Id> &platforms)
@@ -933,6 +933,8 @@ public:
void testParsingFinished(bool success) {
emitParsingFinished(success);
}
bool needsConfiguration() const final { return false; }
};
class TestProjectNode : public ProjectNode