summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-18 03:11:11 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-18 03:11:11 (GMT)
commit0b8ae4978c460e75e5c96937ada2341fceac2ee2 (patch)
tree6e2d4e866d96f9d2446028a3646d9c67b6126b95 /tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
parent300a259e13906e8dde204e3f33dab88ea80f8302 (diff)
parentc68c518d0e4823beaab7d3adf20044bc03446b46 (diff)
downloadQt-0b8ae4978c460e75e5c96937ada2341fceac2ee2.zip
Qt-0b8ae4978c460e75e5c96937ada2341fceac2ee2.tar.gz
Qt-0b8ae4978c460e75e5c96937ada2341fceac2ee2.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp b/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
index e0143a6..720702a 100644
--- a/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
+++ b/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
@@ -400,7 +400,7 @@ T *tst_qdeclarativeimage::findItem(QGraphicsObject *parent, const QString &objec
//qDebug() << "try" << item;
if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) {
if (index != -1) {
- QDeclarativeExpression e(qmlContext(item), "index", item);
+ QDeclarativeExpression e(qmlContext(item), item, "index");
if (e.evaluate().toInt() == index)
return static_cast<T*>(item);
} else {