diff options
author | abcd <qt-info@nokia.com> | 2011-10-05 14:26:06 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-11 06:16:59 +0200 |
commit | 3dcb12116420cd29580b28c8e976c17ea605d185 (patch) | |
tree | dc803abea29a593f402ec81975e32dc8d31855ed /src/location/qplace.cpp | |
parent | c3b41f8823e9f500bf2fde0213c6302c5ff0d12f (diff) | |
download | qtlocation-3dcb12116420cd29580b28c8e976c17ea605d185.tar.gz |
Add Icon support to Places
Change-Id: I559c96427db542dd71122f937dff90c900a02241
Reviewed-on: http://codereview.qt-project.org/6041
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Reviewed-by: abcd <qt_abcd1@ovi.com>
Diffstat (limited to 'src/location/qplace.cpp')
-rw-r--r-- | src/location/qplace.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/location/qplace.cpp b/src/location/qplace.cpp index b0ed80a5..825fb1f8 100644 --- a/src/location/qplace.cpp +++ b/src/location/qplace.cpp @@ -310,6 +310,24 @@ void QPlace::setAttribution(const QString &attribution) } /*! + Returns the icon of the place. +*/ +QPlaceIcon QPlace::icon() const +{ + Q_D(const QPlace); + return d->icon; +} + +/*! + Sets the icon of the place. +*/ +void QPlace::setIcon(const QPlaceIcon &icon) +{ + Q_D(QPlace); + d->icon = icon; +} + +/*! Returns the primary phone number for this place. */ QString QPlace::primaryPhone() const |