diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-11 07:53:42 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-11 07:54:35 (GMT) |
commit | 303730a3fdd399a3e0a65b08338b4db75aa2acee (patch) | |
tree | 4d265dfdf43a214a44f2f1e0408f6e873a1c671e /tests/auto/declarative/qdeclarativelistmodel | |
parent | 79dc9daa146410c7da8d4691e9a4489251980ab3 (diff) | |
download | Qt-303730a3fdd399a3e0a65b08338b4db75aa2acee.zip Qt-303730a3fdd399a3e0a65b08338b4db75aa2acee.tar.gz Qt-303730a3fdd399a3e0a65b08338b4db75aa2acee.tar.bz2 |
Replace QDeclarativeContext::addDefaultObject() -> setContextObject()
It is faster and easier to use to just support a single context object.
Diffstat (limited to 'tests/auto/declarative/qdeclarativelistmodel')
-rw-r--r-- | tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp index a1e6d6b..1b59608 100644 --- a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp +++ b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp @@ -214,7 +214,7 @@ void tst_QDeclarativeListModel::dynamic() QDeclarativeEngine engine; QDeclarativeListModel model; QDeclarativeEngine::setContextForObject(&model,engine.rootContext()); - engine.rootContext()->addDefaultObject(&model); + engine.rootContext()->setContextObject(&model); QDeclarativeExpression e(engine.rootContext(), script, &model); if (!warning.isEmpty()) QTest::ignoreMessage(QtWarningMsg, warning.toLatin1()); |