Commit 167762c2 authored by Tobias Hunger's avatar Tobias Hunger Committed by Tim Jenssen

qmake: Implement QmakeProFile::allProFiles

Change-Id: I9074b398e8b90657125c697cfa366f304c6c9ab5
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 2f333b10
...@@ -1216,6 +1216,17 @@ QString QmakeProFile::displayName() const ...@@ -1216,6 +1216,17 @@ QString QmakeProFile::displayName() const
return QmakePriFile::displayName(); return QmakePriFile::displayName();
} }
QList<QmakeProFile *> QmakeProFile::allProFiles()
{
QList<QmakeProFile *> result = { this };
for (QmakePriFile *c : m_children) {
auto proC = dynamic_cast<QmakeProFile *>(c);
if (proC)
result.append(proC->allProFiles());
}
return result;
}
bool QmakeProFile::isDebugAndRelease() const bool QmakeProFile::isDebugAndRelease() const
{ {
const QStringList configValues = m_varValues.value(Variable::Config); const QStringList configValues = m_varValues.value(Variable::Config);
......
...@@ -273,6 +273,8 @@ public: ...@@ -273,6 +273,8 @@ public:
bool isParent(QmakeProFile *node); bool isParent(QmakeProFile *node);
QString displayName() const final; QString displayName() const final;
QList<QmakeProFile *> allProFiles();
ProjectType projectType() const; ProjectType projectType() const;
QStringList variableValue(const Variable var) const; QStringList variableValue(const Variable var) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment