mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-25 19:41:37 -08:00
Updates to EntrySearcher
* Only search custom named attributes * Search attribute values in addition to keys * Optimize search process
This commit is contained in:
1 parent
5cf50d9fae
commit
d0d1b25e5c
5 files changed
+48
-21
No files matched your search
@@ -67,6 +67,15 @@ QString EntryAttributes::value(const QString& key) const
|
||||
return m_attributes.value(key);
|
||||
}
|
||||
|
||||
QList<QString> EntryAttributes::values(const QList<QString>& keys) const
|
||||
{
|
||||
QList<QString> values;
|
||||
for (const QString& key : keys) {
|
||||
values.append(m_attributes.value(key));
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
bool EntryAttributes::contains(const QString& key) const
|
||||
{
|
||||
return m_attributes.contains(key);
|
||||
|
||||
Reference in new issue
Block a user