mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 06:36:07 -04:00
Clean up Entry Model/View code
This commit is contained in:
parent
d8d758f0e1
commit
4b57fcb563
7 changed files with 37 additions and 72 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue