diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index abbe945770f..b9ea25deab1 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -512,11 +512,23 @@ QVariantMap Project::toMap() const return map; } +/*! + Returns the directory that contains the project. + + This includes the absolute path. +*/ + Utils::FileName Project::projectDirectory() const { return projectDirectory(projectFilePath()); } +/*! + Returns the directory that contains the file \a top. + + This includes the absolute path. +*/ + Utils::FileName Project::projectDirectory(const Utils::FileName &top) { if (top.isEmpty()) diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h index edcdea2806e..663306137b8 100644 --- a/src/plugins/projectexplorer/project.h +++ b/src/plugins/projectexplorer/project.h @@ -76,7 +76,6 @@ public: Core::IDocument *document() const; Utils::FileName projectFilePath() const; - // The directory that holds the project. This includes the absolute path. Utils::FileName projectDirectory() const; static Utils::FileName projectDirectory(const Utils::FileName &top);