diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-06-19 12:55:53 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-21 04:09:32 +0200 |
commit | 6b68304f59de5fa3f6c861186d98b0c7fe54a4ba (patch) | |
tree | 1d94a6db5a3ad399149e44510a86c008c58814f2 /src/imports/location/plugins.qmltypes | |
parent | 4b10442e2e83bf7440837e469af344579d1ad9d5 (diff) | |
download | qtlocation-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 'src/imports/location/plugins.qmltypes')
-rw-r--r-- | src/imports/location/plugins.qmltypes | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/imports/location/plugins.qmltypes b/src/imports/location/plugins.qmltypes index 75f2fbc6..f8c512db 100644 --- a/src/imports/location/plugins.qmltypes +++ b/src/imports/location/plugins.qmltypes @@ -12,7 +12,7 @@ Module { type: "void" Parameter { name: "topLeft"; type: "QModelIndex" } Parameter { name: "bottomRight"; type: "QModelIndex" } - Parameter { name: "roles"; type: "QSet<int>" } + Parameter { name: "roles"; type: "QVector<int>" } } Signal { name: "dataChanged" @@ -299,40 +299,10 @@ Module { Signal { name: "isTextGeneratedChanged"; type: "void" } } Component { - name: "QDeclarativeGeoBoundingArea" - prototype: "QObject" - exports: ["BoundingArea 5.0"] - } - Component { - name: "QDeclarativeGeoBoundingBox" - prototype: "QDeclarativeGeoBoundingArea" - exports: ["BoundingBox 5.0"] - Property { name: "box"; type: "QGeoBoundingBox" } - Property { name: "bottomLeft"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "bottomRight"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "topLeft"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "topRight"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "height"; type: "double" } - Property { name: "width"; type: "double" } - Signal { name: "bottomLeftChanged"; type: "void" } - Signal { name: "bottomRightChanged"; type: "void" } - Signal { name: "topLeftChanged"; type: "void" } - Signal { name: "topRightChanged"; type: "void" } - Signal { name: "centerChanged"; type: "void" } - Signal { name: "heightChanged"; type: "void" } - Signal { name: "widthChanged"; type: "void" } - Method { - name: "contains" - type: "bool" - Parameter { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true } - } - } - Component { - name: "QDeclarativeGeoBoundingCircle" - prototype: "QDeclarativeGeoBoundingArea" - exports: ["BoundingCircle 5.0"] - Property { name: "circle"; type: "QGeoBoundingCircle" } + name: "QDeclarativeGeoCircle" + prototype: "QDeclarativeGeoShape" + exports: ["GeoCircle 5.0"] + Property { name: "circle"; type: "QGeoCircle" } Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true } Property { name: "radius"; type: "double" } Signal { name: "centerChanged"; type: "void" } @@ -350,7 +320,7 @@ Module { Property { name: "location"; type: "QGeoLocation" } Property { name: "address"; type: "QDeclarativeGeoAddress"; isPointer: true } Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true } - Property { name: "boundingBox"; type: "QDeclarativeGeoBoundingBox"; isPointer: true } + Property { name: "boundingBox"; type: "QDeclarativeGeoRectangle"; isPointer: true } Signal { name: "addressChanged"; type: "void" } Signal { name: "coordinateChanged"; type: "void" } Signal { name: "boundingBoxChanged"; type: "void" } @@ -693,10 +663,35 @@ Module { Property { name: "mobile"; type: "bool"; isReadonly: true } } Component { + name: "QDeclarativeGeoRectangle" + prototype: "QDeclarativeGeoShape" + exports: ["GeoRectangle 5.0"] + Property { name: "rectangle"; type: "QGeoRectangle" } + Property { name: "bottomLeft"; type: "QDeclarativeCoordinate"; isPointer: true } + Property { name: "bottomRight"; type: "QDeclarativeCoordinate"; isPointer: true } + Property { name: "topLeft"; type: "QDeclarativeCoordinate"; isPointer: true } + Property { name: "topRight"; type: "QDeclarativeCoordinate"; isPointer: true } + Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true } + Property { name: "height"; type: "double" } + Property { name: "width"; type: "double" } + Signal { name: "bottomLeftChanged"; type: "void" } + Signal { name: "bottomRightChanged"; type: "void" } + Signal { name: "topLeftChanged"; type: "void" } + Signal { name: "topRightChanged"; type: "void" } + Signal { name: "centerChanged"; type: "void" } + Signal { name: "heightChanged"; type: "void" } + Signal { name: "widthChanged"; type: "void" } + Method { + name: "contains" + type: "bool" + Parameter { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true } + } + } + Component { name: "QDeclarativeGeoRoute" prototype: "QObject" exports: ["Route 5.0"] - Property { name: "bounds"; type: "QDeclarativeGeoBoundingBox"; isReadonly: true; isPointer: true } + Property { name: "bounds"; type: "QDeclarativeGeoRectangle"; isReadonly: true; isPointer: true } Property { name: "travelTime"; type: "int"; isReadonly: true } Property { name: "distance"; type: "double"; isReadonly: true } Property { name: "path"; type: "QDeclarativeCoordinate"; isList: true; isReadonly: true } @@ -852,7 +847,7 @@ Module { Property { name: "waypoints"; type: "QDeclarativeCoordinate"; isList: true; isReadonly: true } Property { name: "excludedAreas" - type: "QDeclarativeGeoBoundingBox" + type: "QDeclarativeGeoRectangle" isList: true isReadonly: true } @@ -880,12 +875,12 @@ Module { Method { name: "addExcludedArea" type: "void" - Parameter { name: "area"; type: "QDeclarativeGeoBoundingBox"; isPointer: true } + Parameter { name: "area"; type: "QDeclarativeGeoRectangle"; isPointer: true } } Method { name: "removeExcludedArea" type: "void" - Parameter { name: "area"; type: "QDeclarativeGeoBoundingBox"; isPointer: true } + Parameter { name: "area"; type: "QDeclarativeGeoRectangle"; isPointer: true } } Method { name: "clearExcludedAreas"; type: "void" } Method { @@ -1132,6 +1127,11 @@ Module { } } Component { + name: "QDeclarativeGeoShape" + prototype: "QObject" + exports: ["GeoShape 5.0"] + } + Component { name: "QDeclarativeGeocodeModel" prototype: "QAbstractListModel" exports: ["GeocodeModel 5.0"] @@ -1591,7 +1591,7 @@ Module { } } Property { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true } - Property { name: "searchArea"; type: "QDeclarativeGeoBoundingArea"; isPointer: true } + Property { name: "searchArea"; type: "QDeclarativeGeoShape"; isPointer: true } Property { name: "offset"; type: "int" } Property { name: "limit"; type: "int" } Property { name: "status"; type: "Status"; isReadonly: true } |