Commit 70a7f80d authored by hjk's avatar hjk

Nim: Adapt file collecting code to new infrastructure

Change-Id: Iaeb931cb93a6020ef40f071fe1b3b51d411d2790
Reviewed-by: default avatarFilippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: default avatarhjk <hjk@qt.io>
parent fd5e0a14
......@@ -185,19 +185,10 @@ bool NimProject::supportsKit(Kit *k, QString *errorMessage) const
FileNameList NimProject::nimFiles() const
{
FileNameList result;
QQueue<FolderNode *> folders;
folders.enqueue(rootProjectNode());
while (!folders.isEmpty()) {
FolderNode *folder = folders.takeFirst();
for (FileNode *file : folder->fileNodes()) {
if (file->displayName().endsWith(QLatin1String(".nim")))
result.append(file->filePath());
}
folders.append(folder->folderNodes());
}
rootProjectNode()->forEachNode([&](FileNode *file) {
if (file->displayName().endsWith(QLatin1String(".nim")))
result.append(file->filePath());
});
return result;
}
......
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