mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-09 21:55:48 -05:00
Implement KDBX 4.1 extended custom icons
This commit is contained in:
parent
70e62d90db
commit
390e14b2c6
17 changed files with 137 additions and 48 deletions
|
|
@ -1137,8 +1137,8 @@ void TestMerge::testMergeDuplicateCustomIcons()
|
|||
|
||||
QUuid customIconId = QUuid::createUuid();
|
||||
|
||||
QByteArray customIcon1 = QString("custom icon 1").toLocal8Bit();
|
||||
QByteArray customIcon2 = QString("custom icon 2").toLocal8Bit();
|
||||
QByteArray customIcon1("custom icon 1");
|
||||
QByteArray customIcon2("custom icon 2");
|
||||
|
||||
dbSource->metadata()->addCustomIcon(customIconId, customIcon1);
|
||||
dbDestination->metadata()->addCustomIcon(customIconId, customIcon2);
|
||||
|
|
@ -1153,7 +1153,7 @@ void TestMerge::testMergeDuplicateCustomIcons()
|
|||
|
||||
QVERIFY(dbDestination->metadata()->hasCustomIcon(customIconId));
|
||||
QCOMPARE(dbDestination->metadata()->customIconsOrder().count(), 1);
|
||||
QCOMPARE(dbDestination->metadata()->customIcon(customIconId), customIcon2);
|
||||
QCOMPARE(dbDestination->metadata()->customIcon(customIconId).data, customIcon2);
|
||||
}
|
||||
|
||||
void TestMerge::testMetadata()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue