mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Turn EntryAttachmentsModel into a QAbstractListModel.
This commit is contained in:
@@ -117,7 +117,7 @@ void TestEntryModel::testAttachmentsModel()
|
||||
entryAttachments->set("2nd", QByteArray("456"));
|
||||
entryAttachments->set("2nd", QByteArray("789"));
|
||||
|
||||
QCOMPARE(model->data(model->index(0, 0)).toString(), QString("2nd"));
|
||||
QCOMPARE(model->data(model->index(0, 0)).toString().left(4), QString("2nd "));
|
||||
|
||||
entryAttachments->remove("first");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user