summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire.ecortex.kdab.com>2014-10-29 09:32:18 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-11-02 12:43:28 +0100
commit8bd7ea0ec2f67679d046d35af5785d99b31620a3 (patch)
treece8b1290edc55a27f867cc6a044d69596e113b1f /tests
parent22aae0f06bf90ece7435e9dfa4059f1615046eff (diff)
QNodeUuid: typedef for QUuid
Should allow to easily replace QUuid by a custom quint64 based struct Change-Id: Ib4ba57efd2e070317aa3417b37ce091f2b4779a0 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/qscene/tst_qscene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/core/qscene/tst_qscene.cpp b/tests/auto/core/qscene/tst_qscene.cpp
index b8c11bcb9..7197f5286 100644
--- a/tests/auto/core/qscene/tst_qscene.cpp
+++ b/tests/auto/core/qscene/tst_qscene.cpp
@@ -192,7 +192,7 @@ void tst_QScene::removeObservable()
scene->removeObservable(observables.at(0), node2->uuid());
QCOMPARE(scene->lookupObservables(node2->uuid()).count(), 5);
- QVERIFY(scene->nodeIdFromObservable(observables.at(0)) == QUuid());
+ QVERIFY(scene->nodeIdFromObservable(observables.at(0)) == Qt3D::QNodeUuid());
}
void tst_QScene::removeNodeObservable()
@@ -227,7 +227,7 @@ void tst_QScene::removeNodeObservable()
QVERIFY(scene->lookupNode(node1->uuid()) == Q_NULLPTR);
QVERIFY(scene->lookupObservables(node1->uuid()).empty());
- QVERIFY(scene->nodeIdFromObservable(observables.at(0)) == QUuid());
+ QVERIFY(scene->nodeIdFromObservable(observables.at(0)) == Qt3D::QNodeUuid());
QVERIFY(scene->lookupNode(node2->uuid()) == node2);
QCOMPARE(scene->lookupObservables(node2->uuid()).count(), 5);
@@ -314,7 +314,7 @@ void tst_QScene::addEntityForComponent()
}
for (int i = 0; i < 10; i++) {
- QList<QUuid> uuids = scene->entitiesForComponent(components.at(i)->uuid());
+ QList<Qt3D::QNodeUuid> uuids = scene->entitiesForComponent(components.at(i)->uuid());
QCOMPARE(uuids.count(), 10);
}
}