diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2012-09-19 13:29:52 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2012-09-19 16:31:22 +0200 |
commit | 55b7759a93d040f7658ba24899bf92d46051ff04 (patch) | |
tree | d6997aaf2c7b61666815aae075bbd9eac5b904e7 /tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp | |
parent | 7b3b3adaffaa576f041b71e9142b020fe07934f4 (diff) | |
download | qt-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.cpp | 2 |
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); |