Lines Matching refs:EntityTreeModel

20 class InspectableETM : public EntityTreeModel
24 : EntityTreeModel(monitor, parent) in InspectableETM()
98 QModelIndex getIndex(const QString &string, EntityTreeModel *model) in getIndex()
111 bool waitForPopulation(const QModelIndex &idx, EntityTreeModel *model, int count) in waitForPopulation()
122 void referenceCollection(EntityTreeModel *model, int index) in referenceCollection()
126 model->setData(idx, QVariant(), EntityTreeModel::CollectionRefRole); in referenceCollection()
127 model->setData(idx, QVariant(), EntityTreeModel::CollectionDerefRole); in referenceCollection()
130 void referenceCollections(EntityTreeModel *model, int count) in referenceCollections()
162 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in testItemAdded()
176 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionRefRole); in testItemAdded()
185 …QCOMPARE(model->index(0, 0, monitorIndex).data(Akonadi::EntityTreeModel::ItemIdRole).value<Akonadi… in testItemAdded()
188 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionDerefRole); in testItemAdded()
189 …QCOMPARE(model->index(0, 0, monitorIndex).data(Akonadi::EntityTreeModel::ItemIdRole).value<Akonadi… in testItemAdded()
212 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionRefRole); in testItemAdded()
221 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionDerefRole); in testItemAdded()
248 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in testItemAddedBeforeFetch()
273 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionRefRole); in testItemAddedBeforeFetch()
314 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in testPurgeEmptyCollection()
326 QSignalSpy populatedSpy(model, &EntityTreeModel::collectionPopulated); in testPurgeEmptyCollection()
327 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionRefRole); in testPurgeEmptyCollection()
333 model->setData(monitorIndex, QVariant(), EntityTreeModel::CollectionDerefRole); in testPurgeEmptyCollection()