summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-05-20 13:24:30 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-05-20 13:24:30 (GMT)
commitba2cc78943678173d21a4339839e63d16fe774a9 (patch)
tree691ac2916d5daf948cdac07bc4ef19d08f36cabd /tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
parent8f47373e3795d7ec50387d5f1a771a59567bdaea (diff)
parentef8cd7f2e68d6d34d70c3a12e82a67ed16b92b72 (diff)
downloadQt-ba2cc78943678173d21a4339839e63d16fe774a9.zip
Qt-ba2cc78943678173d21a4339839e63d16fe774a9.tar.gz
Qt-ba2cc78943678173d21a4339839e63d16fe774a9.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 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 {