aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/proxytestinnermodel.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/proxytestinnermodel.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/proxytestinnermodel.h')
-rw-r--r--tests/auto/quick/qquicklistview/proxytestinnermodel.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/quick/qquicklistview/proxytestinnermodel.h b/tests/auto/quick/qquicklistview/proxytestinnermodel.h
index 8599db4c87..b21fd88306 100644
--- a/tests/auto/quick/qquicklistview/proxytestinnermodel.h
+++ b/tests/auto/quick/qquicklistview/proxytestinnermodel.h
@@ -36,11 +36,11 @@ class ProxyTestInnerModel : public QAbstractItemModel
Q_OBJECT
public:
ProxyTestInnerModel();
- virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
- virtual QModelIndex parent(const QModelIndex & /*parent*/) const;
- virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
- virtual int columnCount(const QModelIndex &parent) const;
- virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex & /*parent*/) const override;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+ int columnCount(const QModelIndex &parent) const override;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
Q_INVOKABLE void doStuff();