20 return QFileInfo(projectFileName).baseName();
25 return QFileInfo(projectFileName).path();
45 return QFile::exists(projectFileName) && QFile::exists(
autosaveName(projectFileName));
Defines namespace GUI::Project::Utils.
constexpr const char * projectFileExtension
QString autosaveSubdir()
Returns fixed name for autosave sub-directory.
QString autosaveDir(const QString &projectFileName)
Returns name of autosave directory for project with given project file name. E.g. from '/projects/Unt...
bool hasAutosavedData(const QString &projectFileName)
Returns true if project with given projectFileName contains autosaved data.
QString projectDir(const QString &projectFileName)
Returns project directory deduced from project file name.
QString projectName(const QString &projectFileName)
Returns project name deduced from project file name.
QString autosaveName(const QString &projectFileName)
Returns name of project for autoSave from given project file name. E.g. from '/projects/Untitled2/Unt...