diff options
Diffstat (limited to 'tests/auto/render/picking/tst_picking.cpp')
-rw-r--r-- | tests/auto/render/picking/tst_picking.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/render/picking/tst_picking.cpp b/tests/auto/render/picking/tst_picking.cpp index 42e7bd49e..54036fc74 100644 --- a/tests/auto/render/picking/tst_picking.cpp +++ b/tests/auto/render/picking/tst_picking.cpp @@ -38,7 +38,6 @@ #include <Qt3DCore/qentity.h> #include <Qt3DCore/qtransform.h> #include <Qt3DCore/QScenePropertyChange> -#include <Qt3DCore/qtranslatetransform.h> #include <Qt3DCore/qboundingvolumeprovider.h> #include <Qt3DRender/private/pickboundingvolumejob_p.h> #include <Qt3DRender/private/objectpicker_p.h> @@ -78,7 +77,6 @@ public: , picker(new MyObjectPicker(this)) , mesh(new QSphereMesh(this)) , transform(new Qt3DCore::QTransform(this)) - , translate(new QTranslateTransform(transform)) , acceptsEvents(true) , pressedCalled(0) , releasedCalled(0) @@ -93,8 +91,7 @@ public: const QByteArray data = (*vertexBuffer->bufferFunctor())(); vertexBuffer->setData(data); - translate->setTranslation(position); - transform->addTransform(translate); + transform->setTranslation(position); addComponent(picker); addComponent(mesh); @@ -108,7 +105,6 @@ public: MyObjectPicker *picker; QSphereMesh *mesh; Qt3DCore::QTransform *transform; - QTranslateTransform *translate; bool acceptsEvents; int pressedCalled; |