QVERIFY(item->text() != sameItem->text());
// propagate change
+ QEventLoop eventLoop;
+ connect(m_model, &PlacesItemModel::sourceModelDataChanged, &eventLoop, &QEventLoop::quit);
m_model->refresh();
+ eventLoop.exec();
// item must be equal
- QTRY_COMPARE(item->text(), sameItem->text());
+ QCOMPARE(item->text(), sameItem->text());
}
void PlacesItemModelTest::testIcons_data()