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:
@@ -165,8 +165,8 @@ class ProFileDocument : public TextDocument
|
||||
{
|
||||
public:
|
||||
ProFileDocument();
|
||||
QString defaultPath() const override;
|
||||
QString suggestedFileName() const override;
|
||||
QString fallbackSaveAsPath() const override;
|
||||
QString fallbackSaveAsFileName() const override;
|
||||
|
||||
// qmake project files doesn't support UTF8-BOM
|
||||
// If the BOM would be added qmake would fail and QtCreator couldn't parse the project file
|
||||
@@ -179,12 +179,12 @@ ProFileDocument::ProFileDocument()
|
||||
setMimeType(QLatin1String(Constants::PROFILE_MIMETYPE));
|
||||
}
|
||||
|
||||
QString ProFileDocument::defaultPath() const
|
||||
QString ProFileDocument::fallbackSaveAsPath() const
|
||||
{
|
||||
return filePath().toFileInfo().absolutePath();
|
||||
}
|
||||
|
||||
QString ProFileDocument::suggestedFileName() const
|
||||
QString ProFileDocument::fallbackSaveAsFileName() const
|
||||
{
|
||||
return filePath().fileName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user