diff options
Diffstat (limited to 'examples/qml/referenceexamples/binding/happybirthdaysong.h')
-rw-r--r-- | examples/qml/referenceexamples/binding/happybirthdaysong.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <QQmlPropertyValueSource> #include <QQmlProperty> +#include <qqml.h> #include <QStringList> @@ -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); |