diff options
Diffstat (limited to 'tests/auto/jsondblistmodel/testjsondblistmodel.cpp')
-rw-r--r-- | tests/auto/jsondblistmodel/testjsondblistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/jsondblistmodel/testjsondblistmodel.cpp b/tests/auto/jsondblistmodel/testjsondblistmodel.cpp index 0f7bd15..88db320 100644 --- a/tests/auto/jsondblistmodel/testjsondblistmodel.cpp +++ b/tests/auto/jsondblistmodel/testjsondblistmodel.cpp @@ -164,7 +164,7 @@ void TestJsonDbListModel::initTestCase() QAbstractItemModel *TestJsonDbListModel::createModel() { ModelData *newModel = new ModelData(); - newModel->engine = new QDeclarativeEngine(); + newModel->engine = new QQmlEngine(); QString error; Q_ASSERT(!mPluginPath.isEmpty()); if (!newModel->engine->importPlugin(mPluginPath, QString("QtJsonDb"), &error)) { @@ -172,7 +172,7 @@ QAbstractItemModel *TestJsonDbListModel::createModel() delete newModel->engine; return 0; } - newModel->component = new QDeclarativeComponent(newModel->engine); + newModel->component = new QQmlComponent(newModel->engine); newModel->component->setData("import QtQuick 2.0\nimport QtJsonDb 1.0 as JsonDb \n JsonDb.JsonDbListModel {id: contactsModel; partition: JsonDb.Partition {name: \"com.example.shared.1\"}}", QUrl()); newModel->model = newModel->component->create(); if (newModel->component->isError()) |