aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/incrementalmodel.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-17 12:03:11 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-25 18:23:24 +0000
commit17c0eff69de7a7a88b6df8e3c7ce03de9e27e56e (patch)
treea94ea9996c73410d9fba2610dc98dc0c67ace695 /tests/auto/quick/qquicklistview/incrementalmodel.h
parentcdbf0b06c7c21e6b6ab4a41486e9c9f40c0743e6 (diff)
Add override keyword in tests to silence compiler warnings
Change-Id: Ib18e8aa7acf2c5abd68578f4f4405a977d19d286 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> (cherry picked from commit 799495cb7da2aa47c6442f035b4e6a8a3efc5ae8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/quick/qquicklistview/incrementalmodel.h')
-rw-r--r--tests/auto/quick/qquicklistview/incrementalmodel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquicklistview/incrementalmodel.h b/tests/auto/quick/qquicklistview/incrementalmodel.h
index 1494575edc..85f3b9263f 100644
--- a/tests/auto/quick/qquicklistview/incrementalmodel.h
+++ b/tests/auto/quick/qquicklistview/incrementalmodel.h
@@ -40,12 +40,12 @@ class IncrementalModel : public QAbstractListModel
public:
IncrementalModel(QObject *parent = 0);
- int rowCount(const QModelIndex &parent = QModelIndex()) const;
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
protected:
- bool canFetchMore(const QModelIndex &parent) const;
- void fetchMore(const QModelIndex &parent);
+ bool canFetchMore(const QModelIndex &parent) const override;
+ void fetchMore(const QModelIndex &parent) override;
private:
QStringList list;