summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-10 10:17:53 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-20 11:59:11 +0000
commit14bb6fb6d8e1fbde317111b57e42e3a380927d8b (patch)
treea7d85dd83aa8b72528c053733245df4a5fd5a723 /tests
parent9bf2094621e3fba71710f47d7121f1182c3f3337 (diff)
Create proper Quick extended classes in scene loaders
This allows exploring the loaded subtrees from QML/Javascript code. The C++ classes are not suitable for this as they lack properties that involve QML specifics. The assimp (QML) example is updated to show how to do this (with the help of some C++ code). Say hello to the pulsating torus and the rotating monkey! Change-Id: I60401272105df5d72f4b7afebe26a3271e92f19e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/qscene/tst_qscene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/core/qscene/tst_qscene.cpp b/tests/auto/core/qscene/tst_qscene.cpp
index 2e0de0587..e5d30eccf 100644
--- a/tests/auto/core/qscene/tst_qscene.cpp
+++ b/tests/auto/core/qscene/tst_qscene.cpp
@@ -87,6 +87,7 @@ private:
class tst_Node : public Qt3D::QNode
{
+ Q_OBJECT
public:
tst_Node() : Qt3D::QNode()
{}
@@ -102,6 +103,7 @@ protected:
class tst_Component : public Qt3D::QComponent
{
+ Q_OBJECT
public:
tst_Component() : Qt3D::QComponent()
{}