diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-07-22 05:16:17 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-07-22 05:16:17 (GMT) |
commit | ddb5e1eef379c7f32a594d91b00ff3514c46b62a (patch) | |
tree | cd7e358a4286fdd32143e94eecfa094da89396b6 /tests/auto/declarative | |
parent | 773a2421eefc3a9162266d1cad890208b70d3fd8 (diff) | |
download | Qt-ddb5e1eef379c7f32a594d91b00ff3514c46b62a.zip Qt-ddb5e1eef379c7f32a594d91b00ff3514c46b62a.tar.gz Qt-ddb5e1eef379c7f32a594d91b00ff3514c46b62a.tar.bz2 |
Remove QDeclarativeItem::childrenChanged() signal overload
Broke signal handlers in QML
Task-number: QTBUG-12335
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp | 5 |
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 345ce38..d76d360 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); |