summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativevisualdatamodel
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-24 05:14:14 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-24 05:14:14 (GMT)
commit29a406e3622ba44ccf35c6913fbb4ad098674092 (patch)
tree8308405bcfdd82938368a7608566a8832f4d13ad /tests/auto/declarative/qdeclarativevisualdatamodel
parent736067120b466248cbfc3180a533dc416953c5e0 (diff)
downloadQt-29a406e3622ba44ccf35c6913fbb4ad098674092.zip
Qt-29a406e3622ba44ccf35c6913fbb4ad098674092.tar.gz
Qt-29a406e3622ba44ccf35c6913fbb4ad098674092.tar.bz2
Update tests following QDeclarativeFlickable::viewport() -> contentIem()
Diffstat (limited to 'tests/auto/declarative/qdeclarativevisualdatamodel')
-rw-r--r--tests/auto/declarative/qdeclarativevisualdatamodel/tst_qdeclarativevisualdatamodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativevisualdatamodel/tst_qdeclarativevisualdatamodel.cpp b/tests/auto/declarative/qdeclarativevisualdatamodel/tst_qdeclarativevisualdatamodel.cpp
index 90c9c6f..43d4d06 100644
--- a/tests/auto/declarative/qdeclarativevisualdatamodel/tst_qdeclarativevisualdatamodel.cpp
+++ b/tests/auto/declarative/qdeclarativevisualdatamodel/tst_qdeclarativevisualdatamodel.cpp
@@ -173,10 +173,10 @@ void tst_qdeclarativevisualdatamodel::objectListModel()
QDeclarativeListView *listview = qobject_cast<QDeclarativeListView*>(view.rootObject());
QVERIFY(listview != 0);
- QDeclarativeItem *viewport = listview->viewport();
- QVERIFY(viewport != 0);
+ QDeclarativeItem *contentItem = listview->contentItem();
+ QVERIFY(contentItem != 0);
- QDeclarativeText *name = findItem<QDeclarativeText>(viewport, "name", 0);
+ QDeclarativeText *name = findItem<QDeclarativeText>(contentItem, "name", 0);
QCOMPARE(name->text(), QString("Item 1"));
dataList[0]->setProperty("name", QLatin1String("Changed"));