mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Enhance attribute entry and add protected attributes (#220)
* Allow protected attributes to be hidden * Entry area is resizable * Added test cases for protected attributes
This commit is contained in:
@@ -181,6 +181,12 @@ void TestEntryModel::testAttributesModel()
|
||||
QCOMPARE(spyAboutToRemove.count(), 1);
|
||||
QCOMPARE(spyRemoved.count(), 1);
|
||||
|
||||
// test attribute protection
|
||||
QString value = entryAttributes->value("2nd");
|
||||
entryAttributes->set("2nd", value, true);
|
||||
QVERIFY(entryAttributes->isProtected("2nd"));
|
||||
QCOMPARE(entryAttributes->value("2nd"), value);
|
||||
|
||||
QSignalSpy spyReset(model, SIGNAL(modelReset()));
|
||||
entryAttributes->clear();
|
||||
model->setEntryAttributes(0);
|
||||
|
||||
Reference in New Issue
Block a user