diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-02 00:37:38 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-02-13 13:14:03 +0000 |
commit | 88e7f935f4adbccaf0ffe7e03a3adec8143cf614 (patch) | |
tree | f1c309b5b16f6f240bf7ee175fef3a6d49f05d11 /src/plugins/classview | |
parent | 033a628cdcd47fe90bf78b7a31e71991371ea86b (diff) |
ProjectExplorer: Use FileName for Node::path
Change-Id: I4a41cfb629be8bb06b4b0616cd4475525e617a51
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/classview')
-rw-r--r-- | src/plugins/classview/classviewparser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/classview/classviewparser.cpp b/src/plugins/classview/classviewparser.cpp index 8e99eb14f3c..71d958a1721 100644 --- a/src/plugins/classview/classviewparser.cpp +++ b/src/plugins/classview/classviewparser.cpp @@ -731,7 +731,7 @@ QStringList Parser::projectNodeFileList(const FolderNode *node) const if (file->isGenerated()) continue; - list << file->path(); + list << file->path().toString(); } foreach (const FolderNode *folder, subFolderNodes) { @@ -756,7 +756,7 @@ QStringList Parser::addProjectNode(const ParserTreeItem::Ptr &item, const Projec if (!node) return projectList; - const QString &nodePath = node->path(); + const QString nodePath = node->path().toString(); // our own files QStringList fileList; @@ -770,8 +770,8 @@ QStringList Parser::addProjectNode(const ParserTreeItem::Ptr &item, const Projec d->cachedPrjFileLists[nodePath] = fileList; } if (fileList.count() > 0) { - addProject(item, fileList, node->path()); - projectList << node->path(); + addProject(item, fileList, node->path().toString()); + projectList << node->path().toString(); } // subnodes @@ -779,7 +779,7 @@ QStringList Parser::addProjectNode(const ParserTreeItem::Ptr &item, const Projec foreach (const ProjectNode *project, projectNodes) { ParserTreeItem::Ptr itemPrj(new ParserTreeItem()); - SymbolInformation information(project->displayName(), project->path()); + SymbolInformation information(project->displayName(), project->path().toString()); projectList += addProjectNode(itemPrj, project); @@ -800,7 +800,7 @@ QStringList Parser::getAllFiles(const ProjectNode *node) if (!node) return fileList; - const QString &nodePath = node->path(); + const QString nodePath = node->path().toString(); CitCachedPrjFileLists cit = d->cachedPrjFileLists.find(nodePath); // try to improve parsing speed by internal cache @@ -827,7 +827,7 @@ void Parser::addFlatTree(const ParserTreeItem::Ptr &item, const ProjectNode *nod fileList.removeDuplicates(); if (fileList.count() > 0) { - addProject(item, fileList, node->path()); + addProject(item, fileList, node->path().toString()); } } |