forked from qt-creator/qt-creator
Core: Make IDocument concrete
Change-Id: I8290943614ea4a2060cf09a71fb4f957852ab705 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
5e623ddfd1
commit
a5a4f02ced
@@ -29,8 +29,8 @@
|
||||
#include "autotoolsproject.h"
|
||||
#include "autotoolsprojectconstants.h"
|
||||
|
||||
using namespace AutotoolsProjectManager;
|
||||
using namespace AutotoolsProjectManager::Internal;
|
||||
namespace AutotoolsProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
AutotoolsProjectFile::AutotoolsProjectFile(const QString &fileName)
|
||||
{
|
||||
@@ -39,30 +39,5 @@ AutotoolsProjectFile::AutotoolsProjectFile(const QString &fileName)
|
||||
setFilePath(Utils::FileName::fromString(fileName));
|
||||
}
|
||||
|
||||
bool AutotoolsProjectFile::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
{
|
||||
Q_UNUSED(errorString);
|
||||
Q_UNUSED(fileName);
|
||||
Q_UNUSED(autoSave);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AutotoolsProjectFile::isModified() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AutotoolsProjectFile::isSaveAsAllowed() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AutotoolsProjectFile::reload(QString *errorString, ReloadFlag flag, ChangeType type)
|
||||
{
|
||||
Q_UNUSED(errorString);
|
||||
Q_UNUSED(flag);
|
||||
Q_UNUSED(type);
|
||||
|
||||
return false;
|
||||
}
|
||||
} // namespace Internal
|
||||
} // namespace AutotoolsProjectManager
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
namespace AutotoolsProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
class AutotoolsProject;
|
||||
|
||||
/**
|
||||
* @brief Implementation of the Core::IDocument interface.
|
||||
*
|
||||
@@ -47,14 +45,8 @@ class AutotoolsProject;
|
||||
class AutotoolsProjectFile : public Core::IDocument
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
AutotoolsProjectFile(const QString &fileName);
|
||||
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave) override;
|
||||
bool isModified() const override;
|
||||
bool isSaveAsAllowed() const override;
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user