summaryrefslogtreecommitdiff
path: root/examples/script/customclass/bytearrayclass.h
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2012-02-09 12:33:14 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-09 08:22:30 +0100
commit62b027bc2f7b57fd773611e148d8730e8aa7e41b (patch)
tree7115fefa8ed15c54a22d2486f5471cd59d0e2daa /examples/script/customclass/bytearrayclass.h
parent8eb5d9e70ca7ba16b88476bc1065290b95766676 (diff)
downloadqtscript-62b027bc2f7b57fd773611e148d8730e8aa7e41b.tar.gz
Fixed compile of customclass example
Add a missing forward declaration and include. Add a missing Q_OBJECT (mandatory since qtbase ae85d7c965e7d50404c056a77c73bfe00267fa12) Change-Id: I6a4e73e5eba0d02d02246c8eb9662ec04f037a6c Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Diffstat (limited to 'examples/script/customclass/bytearrayclass.h')
-rw-r--r--examples/script/customclass/bytearrayclass.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/script/customclass/bytearrayclass.h b/examples/script/customclass/bytearrayclass.h
index 3175c1e..af02894 100644
--- a/examples/script/customclass/bytearrayclass.h
+++ b/examples/script/customclass/bytearrayclass.h
@@ -45,8 +45,13 @@
#include <QtScript/QScriptClass>
#include <QtScript/QScriptString>
+QT_BEGIN_NAMESPACE
+class QScriptContext;
+QT_END_NAMESPACE
+
class ByteArrayClass : public QObject, public QScriptClass
{
+ Q_OBJECT
public:
ByteArrayClass(QScriptEngine *engine);
~ByteArrayClass();