Updates to EntrySearcher

* Only search custom named attributes
* Search attribute values in addition to keys
* Optimize search process
This commit is contained in:
Jonathan White committed 2019-02-25 18:09:54 -05:00
1 parent 5cf50d9fae
commit d0d1b25e5c
5 files changed
+48 -21

No files matched your search

+9
View File
@@ -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);