summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/meshfunctors/tst_meshfunctors.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-08-10 15:26:28 +0200
committerSean Harmer <sean.harmer@kdab.com>2015-08-11 17:29:25 +0000
commit86efa9fe761915d738ba231a5d94c74af3660500 (patch)
tree62176b3200e30bdf4f52ac2e1fd01277c80188ff /tests/auto/render/meshfunctors/tst_meshfunctors.cpp
parentdfe50678f651f4effd677e4fc9d7b518a5975329 (diff)
Cleanup: remove QAbstractMesh/QMeshData/MeshDataManager
Change-Id: I1f13cea4cf864dcf985d1f487e195509de9006e7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/render/meshfunctors/tst_meshfunctors.cpp')
-rw-r--r--tests/auto/render/meshfunctors/tst_meshfunctors.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/auto/render/meshfunctors/tst_meshfunctors.cpp b/tests/auto/render/meshfunctors/tst_meshfunctors.cpp
index 702449a9f..a7d0f91a7 100644
--- a/tests/auto/render/meshfunctors/tst_meshfunctors.cpp
+++ b/tests/auto/render/meshfunctors/tst_meshfunctors.cpp
@@ -35,9 +35,10 @@
****************************************************************************/
#include <QtTest/QtTest>
-#include <Qt3DRenderer/QAbstractMesh>
+#include <Qt3DRenderer/qgeometryfunctor.h>
+#include <Qt3DRenderer/qgeometry.h>
-class MeshFunctorA : public Qt3D::QAbstractMeshFunctor
+class MeshFunctorA : public Qt3D::QGeometryFunctor
{
public:
MeshFunctorA()
@@ -46,12 +47,12 @@ public:
~MeshFunctorA()
{}
- Qt3D::QMeshDataPtr operator ()() Q_DECL_OVERRIDE
+ Qt3D::QGeometry *operator ()() Q_DECL_OVERRIDE
{
- return Qt3D::QMeshDataPtr();
+ return Q_NULLPTR;
}
- bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE
+ bool operator ==(const Qt3D::QGeometryFunctor &other) const Q_DECL_OVERRIDE
{
return functor_cast<MeshFunctorA>(&other);
}
@@ -59,7 +60,7 @@ public:
QT3D_FUNCTOR(MeshFunctorA)
};
-class MeshFunctorB : public Qt3D::QAbstractMeshFunctor
+class MeshFunctorB : public Qt3D::QGeometryFunctor
{
public:
MeshFunctorB()
@@ -68,12 +69,12 @@ public:
~MeshFunctorB()
{}
- Qt3D::QMeshDataPtr operator ()() Q_DECL_OVERRIDE
+ Qt3D::QGeometry *operator ()() Q_DECL_OVERRIDE
{
- return Qt3D::QMeshDataPtr();
+ return Q_NULLPTR;
}
- bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE
+ bool operator ==(const Qt3D::QGeometryFunctor &other) const Q_DECL_OVERRIDE
{
return functor_cast<MeshFunctorB>(&other);
}
@@ -90,7 +91,7 @@ public:
~MeshFunctorASub()
{}
- bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE
+ bool operator ==(const Qt3D::QGeometryFunctor &other) const Q_DECL_OVERRIDE
{
return functor_cast<MeshFunctorASub>(&other);
}