Rename EntryAttributes::URLNameKey to URLKey.

This commit is contained in:
Felix Geyer 2013-12-02 00:10:47 +01:00
parent 4b41dd30e6
commit f648172625
3 changed files with 5 additions and 5 deletions

View file

@ -190,7 +190,7 @@ QString Entry::title() const
QString Entry::url() const QString Entry::url() const
{ {
return m_attributes->value(EntryAttributes::URLNameKey); return m_attributes->value(EntryAttributes::URLKey);
} }
QString Entry::username() const QString Entry::username() const
@ -316,7 +316,7 @@ void Entry::setTitle(const QString& title)
void Entry::setUrl(const QString& url) void Entry::setUrl(const QString& url)
{ {
m_attributes->set(EntryAttributes::URLNameKey, url, m_attributes->isProtected(EntryAttributes::URLNameKey)); m_attributes->set(EntryAttributes::URLKey, url, m_attributes->isProtected(EntryAttributes::URLKey));
} }
void Entry::setUsername(const QString& username) void Entry::setUsername(const QString& username)

View file

@ -20,10 +20,10 @@
const QString EntryAttributes::TitleKey = "Title"; const QString EntryAttributes::TitleKey = "Title";
const QString EntryAttributes::UserNameKey = "UserName"; const QString EntryAttributes::UserNameKey = "UserName";
const QString EntryAttributes::PasswordKey = "Password"; const QString EntryAttributes::PasswordKey = "Password";
const QString EntryAttributes::URLNameKey = "URL"; const QString EntryAttributes::URLKey = "URL";
const QString EntryAttributes::NotesKey = "Notes"; const QString EntryAttributes::NotesKey = "Notes";
const QStringList EntryAttributes::DefaultAttributes(QStringList() << TitleKey << UserNameKey const QStringList EntryAttributes::DefaultAttributes(QStringList() << TitleKey << UserNameKey
<< PasswordKey << URLNameKey << NotesKey); << PasswordKey << URLKey << NotesKey);
EntryAttributes::EntryAttributes(QObject* parent) EntryAttributes::EntryAttributes(QObject* parent)
: QObject(parent) : QObject(parent)

View file

@ -49,7 +49,7 @@ public:
static const QString TitleKey; static const QString TitleKey;
static const QString UserNameKey; static const QString UserNameKey;
static const QString PasswordKey; static const QString PasswordKey;
static const QString URLNameKey; static const QString URLKey;
static const QString NotesKey; static const QString NotesKey;
static const QStringList DefaultAttributes; static const QStringList DefaultAttributes;
static bool isDefaultAttribute(const QString& key); static bool isDefaultAttribute(const QString& key);