summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/anchors
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-14 04:03:39 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-14 04:03:39 (GMT)
commit93512cc3a615e91a5ef9ed96361d93cc13d7fb6e (patch)
tree993d3e1b357e1991a05c170436820169b0fea322 /tests/auto/declarative/anchors
parent57d7eef906df1ed82b9722e93cb58420460684ed (diff)
downloadQt-93512cc3a615e91a5ef9ed96361d93cc13d7fb6e.zip
Qt-93512cc3a615e91a5ef9ed96361d93cc13d7fb6e.tar.gz
Qt-93512cc3a615e91a5ef9ed96361d93cc13d7fb6e.tar.bz2
compile
Diffstat (limited to 'tests/auto/declarative/anchors')
-rw-r--r--tests/auto/declarative/anchors/tst_anchors.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/anchors/tst_anchors.cpp b/tests/auto/declarative/anchors/tst_anchors.cpp
index 4a51861..9e8024b 100644
--- a/tests/auto/declarative/anchors/tst_anchors.cpp
+++ b/tests/auto/declarative/anchors/tst_anchors.cpp
@@ -207,7 +207,8 @@ void tst_anchors::illegalSets()
QTest::ignoreMessage(QtWarningMsg, warning.toLatin1());
QmlEngine engine;
- QmlComponent component(&engine, QByteArray("import Qt 4.6\n" + qml.toUtf8()), QUrl("file://"));
+ QmlComponent component(&engine);
+ component.setData(QByteArray("import Qt 4.6\n" + qml.toUtf8()), QUrl("file://"));
if (!component.isReady())
qWarning() << "Test errors:" << component.errors();
QVERIFY(component.isReady());