Commit 55b7759a authored by Thomas Hartmann's avatar Thomas Hartmann

Tests.QmlDesigner: fix loadEmptyCoreModel()

Attaching more then one rewriter is not a good idea.

Change-Id: I3ec000836dc21029b43003c4636927086f267d10
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 7b3b3ada
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment