forked from qt-creator/qt-creator
ProjectNode: Rename path() to filePath()
Change-Id: I78bb73f8c9457fd74c470eacbf54eb9195ac9681 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -936,7 +936,7 @@ void PythonProjectNode::refresh(QSet<QString> oldFileList)
|
||||
QSet<QString> added = newFileList;
|
||||
added.subtract(oldFileList);
|
||||
|
||||
QString baseDir = path().toFileInfo().absolutePath();
|
||||
QString baseDir = filePath().toFileInfo().absolutePath();
|
||||
FilesInPathHash filesInPaths = sortFilesIntoPaths(baseDir, added);
|
||||
|
||||
FilesInPathHashConstIt cend = filesInPaths.constEnd();
|
||||
@@ -974,7 +974,7 @@ void PythonProjectNode::refresh(QSet<QString> oldFileList)
|
||||
QList<FileNode *> fileNodes;
|
||||
foreach (const QString &file, it.value()) {
|
||||
foreach (FileNode *fn, folder->fileNodes()) {
|
||||
if (fn->path().toString() == file)
|
||||
if (fn->filePath().toString() == file)
|
||||
fileNodes.append(fn);
|
||||
}
|
||||
}
|
||||
@@ -1009,7 +1009,7 @@ FolderNode *PythonProjectNode::createFolderByName(const QStringList &components,
|
||||
|
||||
const QString component = components.at(end - 1);
|
||||
|
||||
const FileName folderPath = path().parentDir().appendPath(folderName);
|
||||
const FileName folderPath = filePath().parentDir().appendPath(folderName);
|
||||
FolderNode *folder = new FolderNode(folderPath);
|
||||
folder->setDisplayName(component);
|
||||
|
||||
@@ -1037,9 +1037,9 @@ FolderNode *PythonProjectNode::findFolderByName(const QStringList &components, i
|
||||
if (!parent)
|
||||
return 0;
|
||||
|
||||
const QString baseDir = path().toFileInfo().path();
|
||||
const QString baseDir = filePath().toFileInfo().path();
|
||||
foreach (FolderNode *fn, parent->subFolderNodes()) {
|
||||
if (fn->path().toString() == baseDir + QLatin1Char('/') + folderName)
|
||||
if (fn->filePath().toString() == baseDir + QLatin1Char('/') + folderName)
|
||||
return fn;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user