summaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp')
-rw-r--r--tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp b/tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp
index 3916010..c3c3501 100644
--- a/tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp
+++ b/tests/auto/qml/scxmlqmlcpp/tst_scxmlqmlcpp.cpp
@@ -79,20 +79,20 @@ void tst_scxmlqmlcpp::invokedServicesChildrenBinding()
TopMachine topSm;
QScxmlInvokedServices invokedServices;
invokedServices.setStateMachine(&topSm);
- QCOMPARE(invokedServices.children().count(), 0);
+ QCOMPARE(invokedServices.children().size(), 0);
QCOMPARE(topSm.invokedServices().size(), 0);
// at some point during the topSm execution there are 3 invoked services
// of the same name ('3' filters out as '1' at QML binding)
topSm.start();
QTRY_COMPARE(topSm.invokedServices().size(), 3);
- QCOMPARE(invokedServices.children().count(), 1);
+ QCOMPARE(invokedServices.children().size(), 1);
// after completion invoked services drop back to 0
QTRY_COMPARE(topSm.invokedServices().size(), 0);
- QCOMPARE(invokedServices.children().count(), 0);
+ QCOMPARE(invokedServices.children().size(), 0);
// bind *to* the invokedservices property and check that we observe same changes
// during the topSm execution
QProperty<qsizetype> serviceCounter;
- serviceCounter.setBinding([&](){ return invokedServices.children().count(); });
+ serviceCounter.setBinding([&](){ return invokedServices.children().size(); });
QCOMPARE(serviceCounter, 0);
topSm.start();
QTRY_COMPARE(serviceCounter, 1);