summaryrefslogtreecommitdiff
path: root/doc/src/snippets/cpp/cppqml.cpp
diff options
context:
space:
mode:
authorabcd <amos.choy@nokia.com>2011-11-15 19:52:03 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-17 01:24:41 +0100
commit98773f63267a3d118145ad83d37a714e3e6e45e1 (patch)
treeff3e954c7efc126327cdcef6b1451fb71b2e1261 /doc/src/snippets/cpp/cppqml.cpp
parent28dd7ea89f1d2d4f5a59384a3091dd4b641895d1 (diff)
downloadqtlocation-98773f63267a3d118145ad83d37a714e3e6e45e1.tar.gz
Rename Rating to Ratings
It may be possible that other rating values could be added to the rating object e.g. a count for how many gave a rating 1 a count for now many gave a rating of 2 or perhaps ratings for different aspects of a place eg. service cleanliness etc. Therefore ratings should be used instead or rating. Change-Id: I8a46646942dcd938bcee31921cabfa9df9862adc Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'doc/src/snippets/cpp/cppqml.cpp')
-rw-r--r--doc/src/snippets/cpp/cppqml.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/src/snippets/cpp/cppqml.cpp b/doc/src/snippets/cpp/cppqml.cpp
index 7e358ef8..7a490f18 100644
--- a/doc/src/snippets/cpp/cppqml.cpp
+++ b/doc/src/snippets/cpp/cppqml.cpp
@@ -46,7 +46,7 @@
#include <QtLocation/QPlaceAttribute>
#include <QtLocation/QPlaceIcon>
#include <QtLocation/QPlaceUser>
-#include <QtLocation/QPlaceRating>
+#include <QtLocation/QPlaceRatings>
#include <QtLocation/QPlaceSupplier>
#include <QtLocation/QGeoCoordinate>
#include <QtLocation/QGeoAddress>
@@ -104,13 +104,13 @@ void cppQmlInterface(QObject *qmlObject)
qmlObject->setProperty("user", QVariant::fromValue(placeUser));
//! [User set]
- //! [Rating get]
- QPlaceRating placeRating = qmlObject->property("rating").value<QPlaceRating>();
- //! [Rating get]
+ //! [Ratings get]
+ QPlaceRatings placeRatings = qmlObject->property("ratings").value<QPlaceRatings>();
+ //! [Ratings get]
- //! [Rating set]
- qmlObject->setProperty("rating", QVariant::fromValue(placeRating));
- //! [Rating set]
+ //! [Ratings set]
+ qmlObject->setProperty("ratings", QVariant::fromValue(placeRatings));
+ //! [Ratings set]
//! [Supplier get]
QPlaceSupplier placeSupplier = qmlObject->property("supplier").value<QPlaceSupplier>();