forked from qt-creator/qt-creator
Introduce method to access the project directory
... use it. Reviewed-by: dt
This commit is contained in:
@@ -227,6 +227,12 @@ QVariantMap Project::toMap() const
|
||||
return map;
|
||||
}
|
||||
|
||||
QString Project::projectDirectory() const
|
||||
{
|
||||
QFileInfo info(file()->fileName());
|
||||
return info.absoluteDir().path();
|
||||
}
|
||||
|
||||
bool Project::fromMap(const QVariantMap &map)
|
||||
{
|
||||
if (map.contains(QLatin1String(EDITOR_SETTINGS_KEY))) {
|
||||
|
||||
Reference in New Issue
Block a user