diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2016-07-20 09:45:30 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-07-21 08:10:42 +0000 |
commit | a12bc27f19b23177d5a09610fb2e1e2c2e6f1ff7 (patch) | |
tree | 854320a06ba0892b9b3e5eb7263ac996e5058661 /tests/auto/render/qattribute/tst_qattribute.cpp | |
parent | b2a34f74cd9011cdc17609dc3d98335bf7cafd8a (diff) |
Fix API consistency in QAttribute
Change-Id: Ifb155a11cd36642ccfa30ec4d597ff72adfc0fc2
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.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/render/qattribute/tst_qattribute.cpp b/tests/auto/render/qattribute/tst_qattribute.cpp index 18a11fe4f..ec476cdaa 100644 --- a/tests/auto/render/qattribute/tst_qattribute.cpp +++ b/tests/auto/render/qattribute/tst_qattribute.cpp @@ -64,8 +64,8 @@ private Q_SLOTS: customVertex->setByteOffset(305); customVertex->setDivisor(235); customVertex->setName("BB"); - customVertex->setDataType(Qt3DRender::QAttribute::Float); - customVertex->setDataSize(4); + customVertex->setVertexBaseType(Qt3DRender::QAttribute::Float); + customVertex->setVertexSize(4); QTest::newRow("vertex") << customVertex; Qt3DRender::QAttribute *customIndex = new Qt3DRender::QAttribute(); @@ -77,8 +77,8 @@ private Q_SLOTS: customIndex->setByteOffset(327); customIndex->setDivisor(355); customIndex->setName("SB"); - customIndex->setDataType(Qt3DRender::QAttribute::Float); - customIndex->setDataSize(3); + customIndex->setVertexBaseType(Qt3DRender::QAttribute::Float); + customIndex->setVertexSize(3); QTest::newRow("index") << customIndex; } @@ -120,7 +120,7 @@ private Q_SLOTS: arbiter.setArbiterOnNode(attribute.data()); // WHEN - attribute->setDataType(Qt3DRender::QAttribute::Double); + attribute->setVertexBaseType(Qt3DRender::QAttribute::Double); QCoreApplication::processEvents(); // THEN @@ -133,7 +133,7 @@ private Q_SLOTS: arbiter.events.clear(); // WHEN - attribute->setDataSize(4); + attribute->setVertexSize(4); QCoreApplication::processEvents(); // THEN |