Clean up Entry Model/View code

This commit is contained in:
Jonathan White 2018-03-21 21:52:57 -04:00
parent d8d758f0e1
commit 4b57fcb563
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
7 changed files with 37 additions and 72 deletions

View file

@ -307,7 +307,7 @@ void TestEntryModel::testProxyModel()
QList<Entry*> entryList;
entryList << entry;
modelSource->setEntryList(entryList);
modelSource->setEntries(entryList);
/**
* @author Fonic <https://github.com/fonic>
@ -346,7 +346,7 @@ void TestEntryModel::testDatabaseDelete()
Entry* entry2 = new Entry();
entry2->setGroup(db2->rootGroup());
model->setEntryList(QList<Entry*>() << entry1 << entry2);
model->setEntries(QList<Entry*>() << entry1 << entry2);
QCOMPARE(model->rowCount(), 2);