summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia/placesv2
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-02-21 13:13:09 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-21 04:30:11 +0100
commite2c3d8978ca8a598aa3dd6481f776a5fe8d7c9c2 (patch)
treeadf7a6be8e6f6f0a5165dc778410864faa0f6b93 /src/plugins/geoservices/nokia/placesv2
parent8789d662712461b0b8a8ee4724c972bf299b25b3 (diff)
downloadqtlocation-e2c3d8978ca8a598aa3dd6481f776a5fe8d7c9c2.tar.gz
Add sponsored field/role to place search results.
Place search results can be either sponsored or organic search results. This adds a sponsored field/role so that applications can distinguish between the two. Change-Id: I10c9a5699b1c013a2b7ba8ac8100348213a68b8a Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/placesv2')
-rw-r--r--src/plugins/geoservices/nokia/placesv2/qplacesearchreplyimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/placesv2/qplacesearchreplyimpl.cpp b/src/plugins/geoservices/nokia/placesv2/qplacesearchreplyimpl.cpp
index 1341a431..b4cf4419 100644
--- a/src/plugins/geoservices/nokia/placesv2/qplacesearchreplyimpl.cpp
+++ b/src/plugins/geoservices/nokia/placesv2/qplacesearchreplyimpl.cpp
@@ -153,7 +153,7 @@ void QPlaceSearchReplyImpl::replyFinished()
//QJsonArray having = item.value(QLatin1String("having")).toArray();
- //bool sponsored = item.value(QLatin1String("sponsored")).toBool();
+ result.setSponsored(item.value(QLatin1String("sponsored")).toBool());
QUrl href = item.value(QLatin1String("href")).toString();
//QUrl type = item.value(QLatin1String("type")).toString();