aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2016-01-14 15:01:05 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2016-01-19 07:55:56 +0000
commitfc485e6b86c5751b022c5d4f0f2bd6c8e1ab54ba (patch)
tree560339df9c6f27621975fba1ff11bb181ada0501 /src/plugins/cmakeprojectmanager/cmakeeditor.cpp
parent24f5bc7d3f39ff9f322be359f76e8c1fd2e68302 (diff)
Add default implementation for IDocument::fallbackSaveAs(Path|FileName)
The methods are only relevant for documents without a filePath, and there was a mix of different irrelevant implementations present in subclasses. Change-Id: I4f57d306e5ddd913974cfe6ed0b4db062eb907a1 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeeditor.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditor.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
index 3d90db6800..d6c8be5dba 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
@@ -241,9 +241,6 @@ class CMakeDocument : public TextDocument
{
public:
CMakeDocument();
-
- QString fallbackSaveAsPath() const override;
- QString fallbackSaveAsFileName() const override;
};
CMakeDocument::CMakeDocument()
@@ -252,16 +249,6 @@ CMakeDocument::CMakeDocument()
setMimeType(QLatin1String(Constants::CMAKEMIMETYPE));
}
-QString CMakeDocument::fallbackSaveAsPath() const
-{
- return filePath().toFileInfo().absolutePath();
-}
-
-QString CMakeDocument::fallbackSaveAsFileName() const
-{
- return filePath().fileName();
-}
-
//
// CMakeEditorFactory
//