From f648172625863e76a0a20794bb05a8e5e44e14bf Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 2 Dec 2013 00:10:47 +0100 Subject: [PATCH] Rename EntryAttributes::URLNameKey to URLKey. --- src/core/Entry.cpp | 4 ++-- src/core/EntryAttributes.cpp | 4 ++-- src/core/EntryAttributes.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 8d2fac461..2c3d2aa9b 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -190,7 +190,7 @@ QString Entry::title() const QString Entry::url() const { - return m_attributes->value(EntryAttributes::URLNameKey); + return m_attributes->value(EntryAttributes::URLKey); } QString Entry::username() const @@ -316,7 +316,7 @@ void Entry::setTitle(const QString& title) 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) diff --git a/src/core/EntryAttributes.cpp b/src/core/EntryAttributes.cpp index 115855e22..a950390cd 100644 --- a/src/core/EntryAttributes.cpp +++ b/src/core/EntryAttributes.cpp @@ -20,10 +20,10 @@ const QString EntryAttributes::TitleKey = "Title"; const QString EntryAttributes::UserNameKey = "UserName"; const QString EntryAttributes::PasswordKey = "Password"; -const QString EntryAttributes::URLNameKey = "URL"; +const QString EntryAttributes::URLKey = "URL"; const QString EntryAttributes::NotesKey = "Notes"; const QStringList EntryAttributes::DefaultAttributes(QStringList() << TitleKey << UserNameKey - << PasswordKey << URLNameKey << NotesKey); + << PasswordKey << URLKey << NotesKey); EntryAttributes::EntryAttributes(QObject* parent) : QObject(parent) diff --git a/src/core/EntryAttributes.h b/src/core/EntryAttributes.h index 4518cca8c..0eba4332c 100644 --- a/src/core/EntryAttributes.h +++ b/src/core/EntryAttributes.h @@ -49,7 +49,7 @@ public: static const QString TitleKey; static const QString UserNameKey; static const QString PasswordKey; - static const QString URLNameKey; + static const QString URLKey; static const QString NotesKey; static const QStringList DefaultAttributes; static bool isDefaultAttribute(const QString& key);