diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 12:03:11 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-03-25 18:23:24 +0000 |
commit | 17c0eff69de7a7a88b6df8e3c7ce03de9e27e56e (patch) | |
tree | a94ea9996c73410d9fba2610dc98dc0c67ace695 /tests/auto/quick/qquicklistview/randomsortmodel.h | |
parent | cdbf0b06c7c21e6b6ab4a41486e9c9f40c0743e6 (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/randomsortmodel.h')
-rw-r--r-- | tests/auto/quick/qquicklistview/randomsortmodel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/qquicklistview/randomsortmodel.h b/tests/auto/quick/qquicklistview/randomsortmodel.h index 2430e87f20..06c065bf3a 100644 --- a/tests/auto/quick/qquicklistview/randomsortmodel.h +++ b/tests/auto/quick/qquicklistview/randomsortmodel.h @@ -37,10 +37,10 @@ class RandomSortModel : public QAbstractListModel public: explicit RandomSortModel(QObject* parent = 0); - QHash<int, QByteArray> roleNames() const; + QHash<int, QByteArray> roleNames() const override; - QVariant data(const QModelIndex& index, int role) const; - int rowCount(const QModelIndex& parent = QModelIndex()) const; + QVariant data(const QModelIndex& index, int role) const override; + int rowCount(const QModelIndex& parent = QModelIndex()) const override; void randomize(); |