IDocument: Rename defaultPath and suggestedFileName

To fallbackSaveAsPath and fallbackSaveAsFileName. That makes it clearer
what they are for, and that they actually belong to each other.

Change-Id: Ie5b83b9db77d39a7fe9e979cc8f22b7f5b9101a3
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-01-14 14:45:01 +01:00
parent 66088a799a
commit cfc89a685e
47 changed files with 102 additions and 102 deletions

View File

@@ -198,7 +198,7 @@ bool DiffEditorDocument::setContents(const QByteArray &contents)
return true;
}
QString DiffEditorDocument::defaultPath() const
QString DiffEditorDocument::fallbackSaveAsPath() const
{
if (!m_baseDirectory.isEmpty())
return m_baseDirectory;
@@ -274,7 +274,7 @@ Core::IDocument::OpenResult DiffEditorDocument::open(QString *errorString, const
return ok ? OpenResult::Success : OpenResult::CannotHandle;
}
QString DiffEditorDocument::suggestedFileName() const
QString DiffEditorDocument::fallbackSaveAsFileName() const
{
const int maxSubjectLength = 50;

View File

@@ -71,8 +71,8 @@ public:
bool ignoreWhitespace() const;
bool setContents(const QByteArray &contents) override;
QString defaultPath() const override;
QString suggestedFileName() const override;
QString fallbackSaveAsPath() const override;
QString fallbackSaveAsFileName() const override;
bool isModified() const override { return false; }
bool isSaveAsAllowed() const override { return true; }