summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/repeater
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-19 04:22:45 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-19 04:22:45 (GMT)
commitb763dee21dc82fa2abb2f9f038a0253e4e8ed848 (patch)
tree1494bb35fec768d499786286d735e5d601a69cd4 /tests/auto/declarative/repeater
parente19fa69859c1abe8da0623c502d012cff214e1c4 (diff)
downloadQt-b763dee21dc82fa2abb2f9f038a0253e4e8ed848.zip
Qt-b763dee21dc82fa2abb2f9f038a0253e4e8ed848.tar.gz
Qt-b763dee21dc82fa2abb2f9f038a0253e4e8ed848.tar.bz2
Update autotests
Not so much that they pass (or even run) of course. Just making the id change that was needed in the layouts test to all the other copy and pasted findItem functions.
Diffstat (limited to 'tests/auto/declarative/repeater')
-rw-r--r--tests/auto/declarative/repeater/tst_repeater.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/repeater/tst_repeater.cpp b/tests/auto/declarative/repeater/tst_repeater.cpp
index 0d3ec98..0e7c187 100644
--- a/tests/auto/declarative/repeater/tst_repeater.cpp
+++ b/tests/auto/declarative/repeater/tst_repeater.cpp
@@ -72,13 +72,13 @@ QFxView *tst_QFxRepeater::createView(const QString &filename)
}
template<typename T>
-T *tst_QFxRepeater::findItem(QFxItem *parent, const QString &id)
+T *tst_QFxRepeater::findItem(QFxItem *parent, const QString &objectName)
{
const QMetaObject &mo = T::staticMetaObject;
- if (mo.cast(parent) && (id.isEmpty() || parent->id() == id))
+ if (mo.cast(parent) && (objectName.isEmpty() || parent->objectName() == objectName))
return static_cast<T*>(parent);
for (int i = 0; i < parent->children()->count(); ++i) {
- QFxItem *item = findItem<T>(parent->children()->at(i), id);
+ QFxItem *item = findItem<T>(parent->children()->at(i), objectName);
if (item)
return static_cast<T*>(item);
}