summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-10 20:39:49 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-11 00:20:47 +0200
commit6ae7a02104631a2234c475575ae15ca79bef14f9 (patch)
tree5ca2db0e3aa3c7851c6d19117147c581bebeeee3 /tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h
parent459e8dfdfb8ac164383c14332b2b0919f59f8b3c (diff)
Remove most compiler warnings about missing overrides
Remove around 1000 compiler warnings about missing overrides in our auto tests. This significantly reduce the compiler warning noise in our auto tests, so that one can actually better see the real problems inbetween. Change-Id: Id0c04dba43fcaf55d8cd2b5c6697358857c31bf9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h')
-rw-r--r--tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h b/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h
index 0807ffbe94..e28575e50b 100644
--- a/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h
+++ b/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.h
@@ -41,12 +41,12 @@ class DynamicTreeModel : public QAbstractItemModel
public:
DynamicTreeModel(QObject *parent = 0);
- QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
- QModelIndex parent(const QModelIndex &index) const;
- int rowCount(const QModelIndex &index = QModelIndex()) const;
- int columnCount(const QModelIndex &index = QModelIndex()) const;
+ QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex &index) const override;
+ int rowCount(const QModelIndex &index = QModelIndex()) const override;
+ int columnCount(const QModelIndex &index = QModelIndex()) const override;
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
void clear();
@@ -137,7 +137,7 @@ public:
{
}
- virtual void doCommand();
+ virtual void doCommand() override;
};
class ModelMoveCommand : public ModelChangeCommand
@@ -153,7 +153,7 @@ public:
virtual bool emitPreSignal(const QModelIndex &srcParent, int srcStart, int srcEnd,
const QModelIndex &destParent, int destRow);
- virtual void doCommand();
+ virtual void doCommand() override;
virtual void emitPostSignal();
@@ -184,8 +184,8 @@ public:
virtual ~ModelResetCommand();
virtual bool emitPreSignal(const QModelIndex &srcParent, int srcStart, int srcEnd,
- const QModelIndex &destParent, int destRow);
- virtual void emitPostSignal();
+ const QModelIndex &destParent, int destRow) override;
+ virtual void emitPostSignal() override;
};
/**
@@ -200,8 +200,8 @@ public:
virtual ~ModelResetCommandFixed();
virtual bool emitPreSignal(const QModelIndex &srcParent, int srcStart, int srcEnd,
- const QModelIndex &destParent, int destRow);
- virtual void emitPostSignal();
+ const QModelIndex &destParent, int destRow) override;
+ virtual void emitPostSignal() override;
};
class ModelChangeChildrenLayoutsCommand : public ModelChangeCommand
@@ -214,7 +214,7 @@ public:
{
}
- virtual void doCommand();
+ virtual void doCommand() override;
void setSecondAncestorRowNumbers(QList<int> rows)
{