forked from qt-creator/qt-creator
Add override to IDocument hierarchy
Change-Id: I6884f59fe0f06e380254c1f8076dd561d9df4ee3 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -46,9 +46,6 @@ TaskFile::TaskFile(QObject *parent) : Core::IDocument(parent)
|
||||
setId("TaskList.TaskFile");
|
||||
}
|
||||
|
||||
TaskFile::~TaskFile()
|
||||
{ }
|
||||
|
||||
bool TaskFile::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
{
|
||||
Q_UNUSED(errorString)
|
||||
|
||||
@@ -42,18 +42,17 @@ class TaskFile : public Core::IDocument
|
||||
{
|
||||
public:
|
||||
TaskFile(QObject *parent);
|
||||
~TaskFile();
|
||||
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
bool save(QString *errorString, const QString &fileName, bool autoSave) override;
|
||||
|
||||
QString defaultPath() const;
|
||||
QString suggestedFileName() const;
|
||||
QString defaultPath() const override;
|
||||
QString suggestedFileName() const override;
|
||||
|
||||
bool isModified() const;
|
||||
bool isSaveAsAllowed() const;
|
||||
bool isModified() const override;
|
||||
bool isSaveAsAllowed() const override;
|
||||
|
||||
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
|
||||
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override;
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
|
||||
|
||||
bool load(QString *errorString, const QString &fileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user