From 4eff7299501ff932071300b3fa34fbeccb03d0d8 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Mon, 13 Jan 2020 12:49:05 +0100 Subject: Binding example: Fix type registration Fixes: QTBUG-81335 Change-Id: Ie93c9b7ad49703bce245592e659ccdb6ea2b7ed9 Reviewed-by: Ulf Hermann --- examples/qml/referenceexamples/binding/happybirthdaysong.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/qml') diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.h b/examples/qml/referenceexamples/binding/happybirthdaysong.h index dcfebc06ba..a1582f0d4b 100644 --- a/examples/qml/referenceexamples/binding/happybirthdaysong.h +++ b/examples/qml/referenceexamples/binding/happybirthdaysong.h @@ -52,6 +52,7 @@ #include #include +#include #include @@ -60,6 +61,7 @@ class HappyBirthdaySong : public QObject, public QQmlPropertyValueSource Q_OBJECT Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) Q_INTERFACES(QQmlPropertyValueSource) + QML_ELEMENT public: HappyBirthdaySong(QObject *parent = nullptr); -- cgit v1.2.3