diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-02-09 12:33:14 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-09 08:22:30 +0100 |
commit | 62b027bc2f7b57fd773611e148d8730e8aa7e41b (patch) | |
tree | 7115fefa8ed15c54a22d2486f5471cd59d0e2daa /examples/script/customclass/bytearrayclass.h | |
parent | 8eb5d9e70ca7ba16b88476bc1065290b95766676 (diff) | |
download | qtscript-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.h | 5 |
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(); |