summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2012-09-19 13:29:52 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2012-09-19 16:31:22 +0200
commit55b7759a93d040f7658ba24899bf92d46051ff04 (patch)
treed6997aaf2c7b61666815aae075bbd9eac5b904e7 /tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
parent7b3b3adaffaa576f041b71e9142b020fe07934f4 (diff)
downloadqt-creator-55b7759a93d040f7658ba24899bf92d46051ff04.tar.gz
Tests.QmlDesigner: fix loadEmptyCoreModel()
Attaching more then one rewriter is not a good idea. Change-Id: I3ec000836dc21029b43003c4636927086f267d10 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp')
-rw-r--r--tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
index 4b7ccc1310..1946e55dec 100644
--- a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
+++ b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
@@ -203,7 +203,7 @@ void tst_TestCore::loadEmptyCoreModel()
textEdit1.setPlainText(file.readAll());
NotIndentingTextEditModifier modifier1(&textEdit1);
- QScopedPointer<Model> model1(createModel("QtQuick.Item"));
+ QScopedPointer<Model> model1(Model::create("QtQuick.Item"));
QScopedPointer<TestRewriterView> testRewriterView1(new TestRewriterView());
testRewriterView1->setTextModifier(&modifier1);