aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/referenceexamples/binding/happybirthdaysong.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/referenceexamples/binding/happybirthdaysong.h')
-rw-r--r--examples/qml/referenceexamples/binding/happybirthdaysong.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.h b/examples/qml/referenceexamples/binding/happybirthdaysong.h
index dcfebc06ba..c84e9d9e5e 100644
--- a/examples/qml/referenceexamples/binding/happybirthdaysong.h
+++ b/examples/qml/referenceexamples/binding/happybirthdaysong.h
@@ -52,14 +52,17 @@
#include <QQmlPropertyValueSource>
#include <QQmlProperty>
+#include <qqml.h>
#include <QStringList>
+#include <qqml.h>
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);