summaryrefslogtreecommitdiff
path: root/examples/declarative
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-06-19 12:55:53 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-21 04:09:32 +0200
commit6b68304f59de5fa3f6c861186d98b0c7fe54a4ba (patch)
tree1d94a6db5a3ad399149e44510a86c008c58814f2 /examples/declarative
parent4b10442e2e83bf7440837e469af344579d1ad9d5 (diff)
downloadqtlocation-6b68304f59de5fa3f6c861186d98b0c7fe54a4ba.tar.gz
Rename QGeoBoundingArea and related classes to QGeoShape.
QGeoBoundingArea is used for describing more than just a bounding area. Renaming it to a more appropriate name, QGeoShape. The same is done for subclasses and QML equivalents. In C++: QGeoBoundingArea -> QGeoShape QGeoBoundingCircle -> QGeoCircle QGeoBoundingBox -> QGeoRectangle In QML: BoundingArea -> GeoShape BoundingCircle -> GeoCircle BoundingBox -> GeoRectangle Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/places/places.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/places/places.qml b/examples/declarative/places/places.qml
index 3737acce..be4ad07d 100644
--- a/examples/declarative/places/places.qml
+++ b/examples/declarative/places/places.qml
@@ -240,7 +240,7 @@ Item {
onCancelButtonClicked: page.state = ""
onGoButtonClicked: {
- var newRegion = Qt.createQmlObject('import QtLocation 5.0; BoundingBox {}', page, "BoundingCircle");
+ var newRegion = Qt.createQmlObject('import QtLocation 5.0; GeoRectangle {}', page, "GeoCircle");
newRegion.center.latitude = dialogModel.get(0).inputText;
newRegion.center.longitude = dialogModel.get(1).inputText;
newRegion.width = dialogModel.get(2).inputText;
@@ -285,7 +285,7 @@ Item {
onCancelButtonClicked: page.state = ""
onGoButtonClicked: {
- var newRegion = Qt.createQmlObject('import QtLocation 5.0; BoundingCircle {}', page, "BoundingCircle");
+ var newRegion = Qt.createQmlObject('import QtLocation 5.0; GeoCircle {}', page, "GeoCircle");
newRegion.center.latitude = dialogModel.get(0).inputText;
newRegion.center.longitude = dialogModel.get(1).inputText;
newRegion.radius = dialogModel.get(2).inputText;
@@ -348,7 +348,7 @@ Item {
}
}
- BoundingCircle {
+ GeoCircle {
id: startLocation
}