diff options
Diffstat (limited to 'src/plugins/genericprojectmanager/genericprojectnodes.cpp')
-rw-r--r-- | src/plugins/genericprojectmanager/genericprojectnodes.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectnodes.cpp b/src/plugins/genericprojectmanager/genericprojectnodes.cpp index 36bb164bfb..3b2970971a 100644 --- a/src/plugins/genericprojectmanager/genericprojectnodes.cpp +++ b/src/plugins/genericprojectmanager/genericprojectnodes.cpp @@ -43,9 +43,11 @@ namespace GenericProjectManager { namespace Internal { GenericProjectNode::GenericProjectNode(GenericProject *project, Core::IDocument *projectFile) - : ProjectNode(projectFile->filePath()), m_project(project), m_projectFile(projectFile) + : ProjectNode(projectFile->filePath().toString()) + , m_project(project) + , m_projectFile(projectFile) { - setDisplayName(QFileInfo(projectFile->filePath()).completeBaseName()); + setDisplayName(projectFile->filePath().toFileInfo().completeBaseName()); } Core::IDocument *GenericProjectNode::projectFile() const @@ -55,7 +57,7 @@ Core::IDocument *GenericProjectNode::projectFile() const QString GenericProjectNode::projectFilePath() const { - return m_projectFile->filePath(); + return m_projectFile->filePath().toString(); } QHash<QString, QStringList> sortFilesIntoPaths(const QString &base, const QSet<QString> &files) |