aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlpropertymap
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-25 14:44:04 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-01 10:14:16 +0200
commit4a77e2593f281456d25c9b2dd5df400c3e588e4c (patch)
treea21a70166688d1a76f31bace9265e95c700cee05 /tests/auto/qml/qqmlpropertymap
parentda68a8431a2cc0fdea7482750ad4e1abf3f7a85d (diff)
Mark overrides in tests, fix compiler warnings
Change-Id: If753558d911e50a73e351a93eed2e4df3e6592c7 Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlpropertymap')
-rw-r--r--tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp b/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp
index f76249ffad..07afc69a6d 100644
--- a/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp
+++ b/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp
@@ -77,8 +77,8 @@ public:
: QQmlPropertyMap(this, /*parent*/nullptr)
{}
- virtual void classBegin() {}
- virtual void componentComplete() {
+ void classBegin() override {}
+ void componentComplete() override {
insert(QStringLiteral("lateProperty"), QStringLiteral("lateValue"));
}
@@ -308,7 +308,7 @@ class MyPropertyMap : public QQmlPropertyMap
{
Q_OBJECT
protected:
- virtual QVariant updateValue(const QString &key, const QVariant &src)
+ QVariant updateValue(const QString &key, const QVariant &src) override
{
if (key == QLatin1String("key1")) {
// 'key1' must be all uppercase