Core: Make IDocument concrete

Change-Id: I8290943614ea4a2060cf09a71fb4f957852ab705
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-16 20:52:48 +02:00
committed by Orgad Shaneh
parent 5e623ddfd1
commit a5a4f02ced
25 changed files with 35 additions and 279 deletions

View File

@@ -41,24 +41,6 @@ TaskFile::TaskFile(QObject *parent) : Core::IDocument(parent)
setId("TaskList.TaskFile");
}
bool TaskFile::save(QString *errorString, const QString &fileName, bool autoSave)
{
Q_UNUSED(errorString)
Q_UNUSED(fileName);
Q_UNUSED(autoSave)
return false;
}
bool TaskFile::isModified() const
{
return false;
}
bool TaskFile::isSaveAsAllowed() const
{
return false;
}
Core::IDocument::ReloadBehavior TaskFile::reloadBehavior(ChangeTrigger state, ChangeType type) const
{
Q_UNUSED(state);

View File

@@ -38,11 +38,6 @@ class TaskFile : public Core::IDocument
public:
TaskFile(QObject *parent);
bool save(QString *errorString, const QString &fileName, bool autoSave) override;
bool isModified() const override;
bool isSaveAsAllowed() const override;
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override;
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;