Core: FilePath-ify DocumentManager

And adjust users.

Change-Id: I10ca9aeb442a07f7c8d42af362b294aa3398f5c1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-09-21 06:36:32 +02:00
parent 08f3c10bf5
commit 1167f0fac7
22 changed files with 127 additions and 124 deletions

View File

@@ -89,7 +89,7 @@ public:
void updateRevisions();
public:
QString m_defaultPath;
FilePath m_defaultPath;
QString m_suggestedFileName;
TypingSettings m_typingSettings;
StorageSettings m_storageSettings;
@@ -571,7 +571,7 @@ bool TextDocument::isSaveAsAllowed() const
return true;
}
QString TextDocument::fallbackSaveAsPath() const
FilePath TextDocument::fallbackSaveAsPath() const
{
return d->m_defaultPath;
}
@@ -581,7 +581,7 @@ QString TextDocument::fallbackSaveAsFileName() const
return d->m_suggestedFileName;
}
void TextDocument::setFallbackSaveAsPath(const QString &defaultPath)
void TextDocument::setFallbackSaveAsPath(const FilePath &defaultPath)
{
d->m_defaultPath = defaultPath;
}