summaryrefslogtreecommitdiff
path: root/tests/auto/qplace/tst_qplace.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 /tests/auto/qplace/tst_qplace.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 'tests/auto/qplace/tst_qplace.cpp')
-rw-r--r--tests/auto/qplace/tst_qplace.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qplace/tst_qplace.cpp b/tests/auto/qplace/tst_qplace.cpp
index db9c3b7e..471d187e 100644
--- a/tests/auto/qplace/tst_qplace.cpp
+++ b/tests/auto/qplace/tst_qplace.cpp
@@ -132,11 +132,11 @@ void tst_Place::contentCountTest()
void tst_Place::ratingTest()
{
QPlace testObj;
- QVERIFY2(testObj.rating() == QPlaceRating(), "Wrong default value");
- QPlaceRating obj;
+ QVERIFY2(testObj.ratings() == QPlaceRatings(), "Wrong default value");
+ QPlaceRatings obj;
obj.setCount(10);
- testObj.setRating(obj);
- QVERIFY2(testObj.rating() == obj, "Wrong value returned");
+ testObj.setRatings(obj);
+ QVERIFY2(testObj.ratings() == obj, "Wrong value returned");
}
void tst_Place::locationTest()