diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-12 13:11:01 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-12 13:56:39 +0100 |
commit | ad655a3c87e812d6e7ac5e7d1fcb93d19944624c (patch) | |
tree | 9e297e7f914dac56bb9a97c37c3748d8fc2c48d5 | |
parent | 9d19841b053d16157858cf1c48a0143933af2626 (diff) |
QQuickViewTestUtil: mark QAIM method overrides
Fixes a few -Wsuggest-override warnings with gcc 10.2 (but there are more).
Change-Id: I36c29c6f2dc1577a05514950ce1a6b3a24da4f55
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: David Skoland <david.skoland@qt.io>
-rw-r--r-- | tests/auto/quick/shared/viewtestutil.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/quick/shared/viewtestutil.h b/tests/auto/quick/shared/viewtestutil.h index 5e725fdf11..5dc0beeae0 100644 --- a/tests/auto/quick/shared/viewtestutil.h +++ b/tests/auto/quick/shared/viewtestutil.h @@ -77,10 +77,10 @@ namespace QQuickViewTestUtil QaimModel(QObject *parent=0); - int rowCount(const QModelIndex &parent=QModelIndex()) const; - int columnCount(const QModelIndex &parent=QModelIndex()) const; - QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const; - QHash<int,QByteArray> roleNames() const; + int rowCount(const QModelIndex &parent=QModelIndex()) const override; + int columnCount(const QModelIndex &parent=QModelIndex()) const override; + QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override; + QHash<int,QByteArray> roleNames() const override; int count() const; QString name(int index) const; @@ -170,8 +170,8 @@ namespace QQuickViewTestUtil StressTestModel(); - int rowCount(const QModelIndex &) const; - QVariant data(const QModelIndex &, int) const; + int rowCount(const QModelIndex &) const override; + QVariant data(const QModelIndex &, int) const override; public Q_SLOTS: void updateModel(); |