diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-09-15 17:04:13 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-09-30 00:23:23 +0200 |
commit | f382993d407ae57302e3999e89783779c97716a0 (patch) | |
tree | c625c07a00e8110890a378ec899d9ef44ca76a78 /examples/tessellation-modes | |
parent | 7c05bc82dbf0e200c6a6534a70dea9f2ba42fcc5 (diff) |
Comparison operator for QAbstractMeshFunctor subclasses
Change-Id: I18f0c46631615787a5505f7591514bfd33ac6bd0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/tessellation-modes')
-rw-r--r-- | examples/tessellation-modes/tessellatedquadmesh.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/tessellation-modes/tessellatedquadmesh.cpp b/examples/tessellation-modes/tessellatedquadmesh.cpp index de524073a..d0bb465ba 100644 --- a/examples/tessellation-modes/tessellatedquadmesh.cpp +++ b/examples/tessellation-modes/tessellatedquadmesh.cpp @@ -85,6 +85,14 @@ public: mesh->setVerticesPerPatch(4); return mesh; } + + bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const + { + const TessellatedQuadMeshFunctor *otherFunctor = dynamic_cast<const TessellatedQuadMeshFunctor *>(&other); + if (otherFunctor != Q_NULLPTR) + return true; + return false; + } }; Qt3D::QAbstractMeshFunctorPtr TessellatedQuadMesh::meshFunctor() const |