aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-08-19 11:06:39 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-08-20 08:42:49 +0200
commitadcb79025af8bd46a13efd4b884ff2feff64f477 (patch)
tree583eed549b8fe3ebd7b3df24265b11db595a2f9e /examples/qml
parent3cc226ffe74a45509746dddb4e72457f1651be56 (diff)
Reference Examples: Use override for overridden virtual functions
Change-Id: I9f4225bf312856d08fd08431353f3cb36d0f7fa5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/qml')
-rw-r--r--examples/qml/referenceexamples/binding/happybirthdaysong.h2
-rw-r--r--examples/qml/referenceexamples/valuesource/happybirthdaysong.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.h b/examples/qml/referenceexamples/binding/happybirthdaysong.h
index 6960c7a330..dcfebc06ba 100644
--- a/examples/qml/referenceexamples/binding/happybirthdaysong.h
+++ b/examples/qml/referenceexamples/binding/happybirthdaysong.h
@@ -63,7 +63,7 @@ class HappyBirthdaySong : public QObject, public QQmlPropertyValueSource
public:
HappyBirthdaySong(QObject *parent = nullptr);
- virtual void setTarget(const QQmlProperty &);
+ void setTarget(const QQmlProperty &) override;
QString name() const;
void setName(const QString &);
diff --git a/examples/qml/referenceexamples/valuesource/happybirthdaysong.h b/examples/qml/referenceexamples/valuesource/happybirthdaysong.h
index 5900f118f1..e2205a4ebb 100644
--- a/examples/qml/referenceexamples/valuesource/happybirthdaysong.h
+++ b/examples/qml/referenceexamples/valuesource/happybirthdaysong.h
@@ -67,7 +67,7 @@ class HappyBirthdaySong : public QObject, public QQmlPropertyValueSource
public:
HappyBirthdaySong(QObject *parent = nullptr);
- virtual void setTarget(const QQmlProperty &);
+ void setTarget(const QQmlProperty &) override;
// ![1]
QString name() const;