Ref T348, file handling in aircraft model (renaming)

Related: Ref T317 Ref T247 Ref T335
This commit is contained in:
Klaus Basan
2018-09-13 02:01:40 +02:00
parent da2a7f6506
commit c11a38dbde
3 changed files with 8 additions and 8 deletions

View File

@@ -374,11 +374,14 @@ namespace BlackMisc
// ---------------- simulator file related functions -------------------
//! File name (corresponding data for simulator, only available if representing simulator model
QString getFileName() const { return m_fileName; }
const QString &getFileName() const { return m_fileName; }
//! File name?
bool hasFileName() const { return !m_fileName.isEmpty(); }
//! Does the corresponding file exist?
bool hasExistingCorrespondingFile() const;
//! File name
void setFileName(const QString &fileName) { m_fileName = fileName; }
@@ -419,9 +422,6 @@ namespace BlackMisc
//! Adjust file names to a new directory
bool adjustLocalFileNames(const QString &newModelDir, const QString &stripModelDirIndicator = {});
//! Does the corresponding file exist?
bool existsCorrespondingFile() const;
// ---------------- end file related functions --------------
//! Verify the model data