Lines Matching refs:startModel
70 startModel(nullptr) in QTEST_MAIN()
175 startModel = new AlbumModel; in init()
176 startModel->setShowCount(true); in init()
178 connect(startModel, SIGNAL(rowsInserted(QModelIndex,int,int)), in init()
181 connect(startModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), in init()
184 qCDebug(DIGIKAM_TESTS_LOG) << "Created startModel" << startModel; in init()
189 QCOMPARE(startModel->rowCount(), 1); in init()
190 QModelIndex rootIndex = startModel->index(0, 0); in init()
191 QCOMPARE(startModel->rowCount(rootIndex), 1); in init()
192 QModelIndex collectionIndex = startModel->index(0, 0, rootIndex); in init()
193 QCOMPARE(startModel->rowCount(collectionIndex), 1); in init()
312 QCOMPARE(startModel->rowCount(), 1); in testStartAlbumModel()
316 QModelIndex rootIndex = startModel->index(0, 0); in testStartAlbumModel()
317 QCOMPARE(startModel->rowCount(rootIndex), 1); in testStartAlbumModel()
321 QModelIndex collectionIndex = startModel->index(0, 0, rootIndex); in testStartAlbumModel()
322 QCOMPARE(startModel->rowCount(collectionIndex), 3); in testStartAlbumModel()
365 QModelIndex child = startModel->index(row, 0, parent); in slotStartModelRowsInserted()
367 Album* album = startModel->albumForIndex(child); in slotStartModelRowsInserted()
381 QModelIndex index = startModel->index(row, topLeft.column(), topLeft.parent()); in slotStartModelDataChanged()
415 if (startModel) in cleanup()
417 disconnect(startModel); in cleanup()
420 delete startModel; in cleanup()