Add hasKey() convenience methods.

This commit is contained in:
Felix Geyer 2014-12-03 23:36:24 +01:00
parent 876a75b572
commit 3ea0592b53
4 changed files with 12 additions and 0 deletions

View file

@ -27,6 +27,11 @@ QList<QString> EntryAttachments::keys() const
return m_attachments.keys();
}
bool EntryAttachments::hasKey(const QString& key) const
{
return m_attachments.keys().contains(key);
}
QList<QByteArray> EntryAttachments::values() const
{
return m_attachments.values();