forked from qt-creator/qt-creator
ProjectNodes: add listInProject() to Node
Add a setter/getter for listInProject to Node and make the project list all nodes with this property set in Project::files. Task-number: QTCREATORBUG-18132 Change-Id: I334e627856d1bc0d033e13c5d629f6657d8d7fee Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -168,8 +168,8 @@ bool NimProject::supportsKit(Kit *k, QString *errorMessage) const
|
||||
|
||||
FileNameList NimProject::nimFiles() const
|
||||
{
|
||||
const QStringList nim = files(AllFiles, [](const ProjectExplorer::FileNode *fn) {
|
||||
return fn->filePath().endsWith(".nim");
|
||||
const QStringList nim = files(AllFiles, [](const ProjectExplorer::Node *n) {
|
||||
return n->filePath().endsWith(".nim");
|
||||
});
|
||||
return Utils::transform(nim, [](const QString &fp) { return Utils::FileName::fromString(fp); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user