diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.5) -set(PIM_VERSION "5.11.42") +set(PIM_VERSION "5.11.43") project(KContacts VERSION ${PIM_VERSION}) diff --git a/src/addressee.h b/src/addressee.h --- a/src/addressee.h +++ b/src/addressee.h @@ -115,6 +115,7 @@ Q_PROPERTY(bool changed READ changed WRITE setChanged) Q_PROPERTY(QDate anniversary READ anniversary WRITE setAnniversary) Q_PROPERTY(QString assistantsName READ assistantsName WRITE setAssistantsName) + Q_PROPERTY(QUrl blogFeed READ blogFeed WRITE setBlogFeed) Q_PROPERTY(QString managersName READ managersName WRITE setManagersName) Q_PROPERTY(QString office READ office WRITE setOffice) Q_PROPERTY(QString profession READ profession WRITE setProfession) @@ -1140,13 +1141,13 @@ * @note This is a non-standard extension using the @c BlogFeed field. * @since 5.12 */ - QString blogFeed() const; + QUrl blogFeed() const; /** * Set the contact's blog feed. * @note This is a non-standard extension using the @c BlogFeed field. * @since 5.12 */ - void setBlogFeed(const QString &blogFeed); + void setBlogFeed(const QUrl &blogFeed); /** * Returns the contact's manager's name. diff --git a/src/addressee.cpp b/src/addressee.cpp --- a/src/addressee.cpp +++ b/src/addressee.cpp @@ -2185,15 +2185,15 @@ } } -QString Addressee::blogFeed() const +QUrl Addressee::blogFeed() const { - return custom(VENDOR_ID, BLOGFEED); + return QUrl(custom(VENDOR_ID, BLOGFEED)); } -void Addressee::setBlogFeed(const QString &blogFeed) +void Addressee::setBlogFeed(const QUrl &blogFeed) { if (!blogFeed.isEmpty()) { - insertCustom(VENDOR_ID, BLOGFEED, blogFeed); + insertCustom(VENDOR_ID, BLOGFEED, blogFeed.url()); } else { removeCustom(VENDOR_ID, BLOGFEED); }