forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user