summaryrefslogtreecommitdiff
path: root/src/plugins/designer
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2016-01-14 14:45:01 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2016-01-14 14:40:45 +0000
commitcfc89a685e96653f48f27647a13766d29c60a186 (patch)
tree911cfd890e456f7c41c0870988e961b383c9ea50 /src/plugins/designer
parent66088a799adbdfadaa3cb3f18a004890df39a111 (diff)
downloadqt-creator-cfc89a685e96653f48f27647a13766d29c60a186.tar.gz
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>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r--src/plugins/designer/formwindowfile.cpp6
-rw-r--r--src/plugins/designer/formwindowfile.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/designer/formwindowfile.cpp b/src/plugins/designer/formwindowfile.cpp
index 712b3b55a7..005584757e 100644
--- a/src/plugins/designer/formwindowfile.cpp
+++ b/src/plugins/designer/formwindowfile.cpp
@@ -221,12 +221,12 @@ bool FormWindowFile::reload(QString *errorString, ReloadFlag flag, ChangeType ty
return true;
}
-QString FormWindowFile::defaultPath() const
+QString FormWindowFile::fallbackSaveAsPath() const
{
return QString();
}
-void FormWindowFile::setSuggestedFileName(const QString &fn)
+void FormWindowFile::setFallbackSaveAsFileName(const QString &fn)
{
if (Designer::Constants::Internal::debug)
qDebug() << Q_FUNC_INFO << filePath() << fn;
@@ -234,7 +234,7 @@ void FormWindowFile::setSuggestedFileName(const QString &fn)
m_suggestedName = fn;
}
-QString FormWindowFile::suggestedFileName() const
+QString FormWindowFile::fallbackSaveAsFileName() const
{
return m_suggestedName;
}
diff --git a/src/plugins/designer/formwindowfile.h b/src/plugins/designer/formwindowfile.h
index 8982a136ba..9e176e2ad1 100644
--- a/src/plugins/designer/formwindowfile.h
+++ b/src/plugins/designer/formwindowfile.h
@@ -61,11 +61,11 @@ public:
bool isModified() const override;
bool isSaveAsAllowed() const override;
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
- QString defaultPath() const override;
- QString suggestedFileName() const override;
+ QString fallbackSaveAsPath() const override;
+ QString fallbackSaveAsFileName() const override;
// Internal
- void setSuggestedFileName(const QString &fileName);
+ void setFallbackSaveAsFileName(const QString &fileName);
bool writeFile(const QString &fileName, QString *errorString) const;