reuse referenceRegExp

This commit is contained in:
thez3ro 2017-03-07 17:19:41 +01:00
parent a03e354504
commit 40851409fb
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
3 changed files with 10 additions and 3 deletions

View file

@ -36,6 +36,7 @@ public:
bool contains(const QString& key) const;
bool isProtected(const QString& key) const;
bool isReference(const QString& key) const;
QRegExp referenceRegExp() const;
void set(const QString& key, const QString& value, bool protect = false);
void remove(const QString& key);
void rename(const QString& oldKey, const QString& newKey);
@ -72,6 +73,7 @@ Q_SIGNALS:
private:
QMap<QString, QString> m_attributes;
QSet<QString> m_protectedAttributes;
QRegExp m_referenceRegExp;
};
#endif // KEEPASSX_ENTRYATTRIBUTES_H