summaryrefslogtreecommitdiff
path: root/src/location/places/qplaceratings_p.h
diff options
context:
space:
mode:
authorJean Gressmann <jean.gressmann@nokia.com>2012-02-28 09:26:53 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-29 01:11:15 +0100
commit36bb8ce507ecfe9f6fbed75882b10d9da8e5df06 (patch)
treeb0891deeda8d238b489fcf3c99f4483c28c487a6 /src/location/places/qplaceratings_p.h
parentcb4f4d65f4d85820da7478181234b23fffbc1e55 (diff)
downloadqtlocation-36bb8ce507ecfe9f6fbed75882b10d9da8e5df06.tar.gz
isEmpty() functions for place data classes
Added isEmpty() method to QPlace, QPlaceSupplier, and QPlaceRatings. Bugfix for QTBUG-23557 Change-Id: I49d71ac2428003ef3127bbab2e46f83a8bb6ecd3 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/places/qplaceratings_p.h')
-rw-r--r--src/location/places/qplaceratings_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/places/qplaceratings_p.h b/src/location/places/qplaceratings_p.h
index 49a7edb2..ea469902 100644
--- a/src/location/places/qplaceratings_p.h
+++ b/src/location/places/qplaceratings_p.h
@@ -56,6 +56,8 @@ public:
bool operator==(const QPlaceRatingsPrivate &other) const;
+ bool isEmpty() const;
+
qreal average;
qreal maximum;
int count;