diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-02-09 13:54:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-10 03:49:11 +0100 |
commit | bda09fc6860f8e3ea2e7d42927ed878bc5c4943b (patch) | |
tree | ba839e588a8486657e7e991f3ef24501a2c7239d /src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp | |
parent | 77bb81d6e4b46d99cb6a43446c6ed03d0322c238 (diff) | |
download | qtlocation-bda09fc6860f8e3ea2e7d42927ed878bc5c4943b.tar.gz |
Rename formattedAddress to text.
The name formattedAddress gave the impression that the address was
always complete, which was not the case. Rename to "text" and document
that it is the recommended text to use to display the address to the
user and that it is not always complete.
Change-Id: I6c9757ded63e43c52d9764724c4bd0e408c76322
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp')
-rw-r--r-- | src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp b/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp index fe3068e3..ec674ae1 100644 --- a/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp +++ b/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp @@ -165,7 +165,7 @@ void QPlaceDetailsReplyImpl::replyFinished() QJsonObject addressObject = locationObject.value(QLatin1String("address")).toObject(); - address.setFormattedAddress(addressObject.value(QLatin1String("text")).toString()); + address.setText(addressObject.value(QLatin1String("text")).toString()); address.setCountry(addressObject.value(QLatin1String("country")).toString()); address.setCountryCode(addressObject.value(QLatin1String("countryCode")).toString()); |