summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/binding/happybirthday.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/binding/happybirthday.h')
-rw-r--r--examples/declarative/extending/binding/happybirthday.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/declarative/extending/binding/happybirthday.h b/examples/declarative/extending/binding/happybirthday.h
index 3039db2..fff2df0 100644
--- a/examples/declarative/extending/binding/happybirthday.h
+++ b/examples/declarative/extending/binding/happybirthday.h
@@ -2,8 +2,12 @@
#define HAPPYBIRTHDAY_H
#include <QmlPropertyValueSource>
+#include <QmlMetaProperty>
+#include <qml.h>
-class HappyBirthday : public QmlPropertyValueSource
+#include <QStringList>
+
+class HappyBirthday : public QObject, public QmlPropertyValueSource
{
Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)