ui: Added option to show file directory in code view title (issue #556)

* relative to project file if shorter
* checkbox in preferences
* not enabled by default
This commit is contained in:
Eberhard Graether
2019-07-22 14:25:46 +02:00
parent 293ddffb46
commit cd144a979f
12 changed files with 114 additions and 13 deletions
+11 -1
View File
@@ -146,11 +146,21 @@ Application::~Application()
}
}
const std::shared_ptr<Project> Application::getCurrentProject()
const std::shared_ptr<Project> Application::getCurrentProject() const
{
return m_project;
}
FilePath Application::getCurrentProjectPath() const
{
if (m_project)
{
return m_project->getProjectSettingsFilePath();
}
return FilePath();
}
bool Application::isProjectLoaded() const
{
if (m_project)