summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2017-04-05 08:10:24 -0500
committerMichael Brasser <michael.brasser@live.com>2017-04-05 13:14:58 +0000
commitd30914d4153af3dbf17408879c013dc33dfa6549 (patch)
treefc3340ee6cad5ca46689abfddc5c85df77a89c7e
parent330e73ccf1c7b541c81eae9347260a7ef383843a (diff)
Attempt to stabilize test
Use different names for the models in different tests. Change-Id: Iaf08959dd4caa42fc3a01da9075905fc8d2641d8 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
-rw-r--r--tests/auto/modelview/tst_modelview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/modelview/tst_modelview.cpp b/tests/auto/modelview/tst_modelview.cpp
index dbcfcfd..9911854 100644
--- a/tests/auto/modelview/tst_modelview.cpp
+++ b/tests/auto/modelview/tst_modelview.cpp
@@ -1183,9 +1183,9 @@ void TestModelView::testSelectionFromReplica()
for (int i = 0; i < 4; ++i)
simpleModel.appendRow(new QStandardItem(QString("item %0").arg(i)));
QItemSelectionModel selectionModel(&simpleModel);
- m_basicServer.enableRemoting(&simpleModel, "simpleModel", roles, &selectionModel);
+ m_basicServer.enableRemoting(&simpleModel, "simpleModelFromReplica", roles, &selectionModel);
- QScopedPointer<QAbstractItemModelReplica> model(m_client.acquireModel("simpleModel"));
+ QScopedPointer<QAbstractItemModelReplica> model(m_client.acquireModel("simpleModelFromReplica"));
QItemSelectionModel *replicaSelectionModel = model->selectionModel();
FetchData f(model.data());
@@ -1203,9 +1203,9 @@ void TestModelView::testSelectionFromSource()
for (int i = 0; i < 4; ++i)
simpleModel.appendRow(new QStandardItem(QString("item %0").arg(i)));
QItemSelectionModel selectionModel(&simpleModel);
- m_basicServer.enableRemoting(&simpleModel, "simpleModel", roles, &selectionModel);
+ m_basicServer.enableRemoting(&simpleModel, "simpleModelFromSource", roles, &selectionModel);
- QScopedPointer<QAbstractItemModelReplica> model(m_client.acquireModel("simpleModel"));
+ QScopedPointer<QAbstractItemModelReplica> model(m_client.acquireModel("simpleModelFromSource"));
QItemSelectionModel *replicaSelectionModel = model->selectionModel();
FetchData f(model.data());