summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/valuesource/happybirthday.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/valuesource/happybirthday.h')
-rw-r--r--examples/declarative/extending/valuesource/happybirthday.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/declarative/extending/valuesource/happybirthday.h b/examples/declarative/extending/valuesource/happybirthday.h
index e0d4912..18ac1f4 100644
--- a/examples/declarative/extending/valuesource/happybirthday.h
+++ b/examples/declarative/extending/valuesource/happybirthday.h
@@ -2,9 +2,12 @@
#define HAPPYBIRTHDAY_H
#include <QmlPropertyValueSource>
+#include <qml.h>
+
+#include <QStringList>
// ![0]
-class HappyBirthday : public QmlPropertyValueSource
+class HappyBirthday : public QObject, public QmlPropertyValueSource
{
Q_OBJECT
// ![0]