summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-07-22 15:16:17 +1000
committerToby Tomkins <toby.tomkins@nokia.com>2010-07-26 17:08:13 +1000
commit18a2e097f09ecd68e9ea2a2a515d9358729188c2 (patch)
tree66edde9f77f87b28d8d59a8eae73646514373c37 /tests
parent056bbc32fd64f48851e6ad058c5e4c1372a96564 (diff)
Remove QDeclarativeItem::childrenChanged() signal overload
Broke signal handlers in QML Task-number: QTBUG-12335 Reviewed-by: Aaron Kennedy (cherry picked from commit ddb5e1eef379c7f32a594d91b00ff3514c46b62a)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
index 345ce38528..d76d360cbc 100644
--- a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
+++ b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
@@ -665,6 +665,7 @@ void tst_QDeclarativeItem::propertyChanges()
QSignalSpy childrenRectSpy(parentItem, SIGNAL(childrenRectChanged(QRectF)));
QSignalSpy focusSpy(item, SIGNAL(focusChanged(bool)));
QSignalSpy wantsFocusSpy(parentItem, SIGNAL(activeFocusChanged(bool)));
+ QSignalSpy childrenChangedSpy(parentItem, SIGNAL(childrenChanged()));
item->setParentItem(parentItem);
item->setWidth(100.0);
@@ -677,6 +678,10 @@ void tst_QDeclarativeItem::propertyChanges()
QList<QVariant> parentArguments = parentSpy.first();
QVERIFY(parentArguments.count() == 1);
QCOMPARE(item->parentItem(), qvariant_cast<QDeclarativeItem *>(parentArguments.at(0)));
+ QCOMPARE(childrenChangedSpy.count(),1);
+
+ item->setParentItem(parentItem);
+ QCOMPARE(childrenChangedSpy.count(),1);
QCOMPARE(item->width(), 100.0);
QCOMPARE(widthSpy.count(),1);