summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/qattribute/tst_qattribute.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2015-12-02 15:53:04 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-12-02 22:06:36 +0000
commitc45b47e99eaf0bcecec606a304b338424d58561b (patch)
tree501e8e77c7f1462a44969c8b3c17acf72bdd645f /tests/auto/render/qattribute/tst_qattribute.cpp
parent4ab78c9a125abc667a4166c58f9be2d72bdef5a7 (diff)
Move core/io content to render/geometry and io
Change-Id: I79e0b0d62e07a269ebfce99edff56d30da28494c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/render/qattribute/tst_qattribute.cpp')
-rw-r--r--tests/auto/render/qattribute/tst_qattribute.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/render/qattribute/tst_qattribute.cpp b/tests/auto/render/qattribute/tst_qattribute.cpp
index 1880e5091..acc3f8cbb 100644
--- a/tests/auto/render/qattribute/tst_qattribute.cpp
+++ b/tests/auto/render/qattribute/tst_qattribute.cpp
@@ -51,7 +51,7 @@ class tst_QAttribute: public Qt3DCore::QNode
public:
tst_QAttribute()
{
- qRegisterMetaType<Qt3DCore::QAbstractBuffer*>("Qt3DCore::QAbstractBuffer*");
+ qRegisterMetaType<Qt3DRender::QAbstractBuffer*>("Qt3DCore::QAbstractBuffer*");
}
~tst_QAttribute()
@@ -71,7 +71,7 @@ private Q_SLOTS:
Qt3DRender::QAttribute *customVertex = new Qt3DRender::QAttribute();
Qt3DRender::QBuffer *buffer = new Qt3DRender::QBuffer(Qt3DRender::QBuffer::VertexBuffer);
customVertex->setBuffer(buffer);
- customVertex->setAttributeType(Qt3DCore::QAbstractAttribute::VertexAttribute);
+ customVertex->setAttributeType(Qt3DRender::QAbstractAttribute::VertexAttribute);
customVertex->setCount(454);
customVertex->setByteStride(427);
customVertex->setByteOffset(305);
@@ -84,7 +84,7 @@ private Q_SLOTS:
Qt3DRender::QAttribute *customIndex = new Qt3DRender::QAttribute();
Qt3DRender::QBuffer *indexBuffer = new Qt3DRender::QBuffer(Qt3DRender::QBuffer::IndexBuffer);
customIndex->setBuffer(indexBuffer);
- customIndex->setAttributeType(Qt3DCore::QAbstractAttribute::IndexAttribute);
+ customIndex->setAttributeType(Qt3DRender::QAbstractAttribute::IndexAttribute);
customIndex->setCount(383);
customIndex->setByteStride(350);
customIndex->setByteOffset(327);
@@ -222,14 +222,14 @@ private Q_SLOTS:
arbiter.events.clear();
// WHEN
- attribute->setAttributeType(Qt3DCore::QAbstractAttribute::IndexAttribute);
+ attribute->setAttributeType(Qt3DRender::QAbstractAttribute::IndexAttribute);
QCoreApplication::processEvents();
// THEN
QCOMPARE(arbiter.events.size(), 1);
change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
QCOMPARE(change->propertyName(), "attributeType");
- QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DCore::QAbstractAttribute::IndexAttribute));
+ QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QAbstractAttribute::IndexAttribute));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
arbiter.events.clear();