summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/layouts/tst_layouts.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-08 03:33:37 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-08 03:33:37 (GMT)
commit2ce79831de76b32ef2b0b96aef7301a83cdcf73a (patch)
tree375ed90127a42bb00e6f0cfc1b30c5357570db8d /tests/auto/declarative/layouts/tst_layouts.cpp
parent009e825d2da38b95fb2efbfbdefc4b58c8bf0fa8 (diff)
downloadQt-2ce79831de76b32ef2b0b96aef7301a83cdcf73a.zip
Qt-2ce79831de76b32ef2b0b96aef7301a83cdcf73a.tar.gz
Qt-2ce79831de76b32ef2b0b96aef7301a83cdcf73a.tar.bz2
Get autotests compiling again. Start converting syntax.
Diffstat (limited to 'tests/auto/declarative/layouts/tst_layouts.cpp')
-rw-r--r--tests/auto/declarative/layouts/tst_layouts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/layouts/tst_layouts.cpp b/tests/auto/declarative/layouts/tst_layouts.cpp
index ad6a0b2..3fc4678 100644
--- a/tests/auto/declarative/layouts/tst_layouts.cpp
+++ b/tests/auto/declarative/layouts/tst_layouts.cpp
@@ -354,7 +354,7 @@ QFxView *tst_QFxLayouts::createView(const QString &filename)
QFile file(filename);
file.open(QFile::ReadOnly);
QString xml = file.readAll();
- canvas->setXml(xml, filename);
+ canvas->setQml(xml, filename);
return canvas;
}
@@ -371,7 +371,7 @@ T *tst_QFxLayouts::findItem(QFxItem *parent, const QString &id, int index)
QFxItem *item = parent->children()->at(i);
if (mo.cast(item) && (id.isEmpty() || item->id() == id)) {
if (index != -1) {
- QmlExpression e(item->itemContext(), "index", item);
+ QmlExpression e(qmlContext(item), "index", item);
e.setTrackChange(false);
if (e.value().toInt() == index)
return static_cast<T*>(item);