aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
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/cmakeprojectmanager/cmakeeditor.cpp
parent66088a799adbdfadaa3cb3f18a004890df39a111 (diff)
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/cmakeprojectmanager/cmakeeditor.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
index 3cdd1eccfc..3d90db6800 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
@@ -242,8 +242,8 @@ class CMakeDocument : public TextDocument
public:
CMakeDocument();
- QString defaultPath() const override;
- QString suggestedFileName() const override;
+ QString fallbackSaveAsPath() const override;
+ QString fallbackSaveAsFileName() const override;
};
CMakeDocument::CMakeDocument()
@@ -252,12 +252,12 @@ CMakeDocument::CMakeDocument()
setMimeType(QLatin1String(Constants::CMAKEMIMETYPE));
}
-QString CMakeDocument::defaultPath() const
+QString CMakeDocument::fallbackSaveAsPath() const
{
return filePath().toFileInfo().absolutePath();
}
-QString CMakeDocument::suggestedFileName() const
+QString CMakeDocument::fallbackSaveAsFileName() const
{
return filePath().fileName();
}