forked from qt-creator/qt-creator
QmakeProjectManager et al: Reduce use of qmake specific logic
Change-Id: I8f7e5d822ccb27e3ec241b814ec67aed7fe7539f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -198,18 +198,6 @@ FolderNode::AddNewInformation QmakePriFileNode::addNewInformation(const QStringL
|
||||
return FolderNode::AddNewInformation(filePath().fileName(), context && context->parentProjectNode() == this ? 120 : 90);
|
||||
}
|
||||
|
||||
QmakeProFileNode *QmakeProFileNode::findProFileFor(const FileName &fileName) const
|
||||
{
|
||||
if (fileName == filePath())
|
||||
return const_cast<QmakeProFileNode *>(this);
|
||||
for (Node *node : nodes()) {
|
||||
if (auto *qmakeProFileNode = dynamic_cast<QmakeProFileNode *>(node))
|
||||
if (QmakeProFileNode *result = qmakeProFileNode->findProFileFor(fileName))
|
||||
return result;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/*!
|
||||
\class QmakeProFileNode
|
||||
Implements abstract ProjectNode class
|
||||
|
||||
Reference in New Issue
Block a user