ProjectConfiguration: Add isActive() method

Returns true if the ProjectConfiguration element is currently active
and false otherwise.

Just a convenience method.

Change-Id: If75809ae7e78149d264deaaf6adc4ca8a8be43c2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-05-02 16:04:45 +02:00
parent 90e40f932d
commit ef2f2804a1
13 changed files with 44 additions and 0 deletions

View File

@@ -116,6 +116,11 @@ void BuildStepList::cloneSteps(BuildStepList *source)
}
}
bool BuildStepList::isActive() const
{
return qobject_cast<ProjectConfiguration *>(parent())->isActive();
}
bool BuildStepList::fromMap(const QVariantMap &map)
{
// We need the ID set before trying to restore the steps!