Use geoshapes as geo-model in qdeclarativegeomapitems
This patch uses QGeoShapes as data model inside the
QDeclarativeMapItemBase subclasses.
Advantages:
- avoids duplication of implementation for
geo-related methods (now only inside QGeoShapes).
- provides map items a bounding box, usable for
area based item searching ,or simple viewport fitting
- allows to follow the graphics-view pattern, and
have the same items visualized in different Maps
(not yet supported).
Change-Id: I6eec738fef5d753d90bdeeb4b109be89155b25f8
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | c062403a894a270101ae821fd73fa848f918ac54 |
| parent | 12b62e04e4c17ddeaeaae46ec09af2eb7244e840 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Thu, 26 Jan 2017 14:46:00 +0000 |
- M src/imports/location/qdeclarativecirclemapitem.cpp
- M src/imports/location/qdeclarativecirclemapitem_p.h
- M src/imports/location/qdeclarativegeomapitembase_p.h
- M src/imports/location/qdeclarativegeomapquickitem.cpp
- M src/imports/location/qdeclarativegeomapquickitem_p.h
- M src/imports/location/qdeclarativepolygonmapitem.cpp
- M src/imports/location/qdeclarativepolygonmapitem_p.h
- M src/imports/location/qdeclarativepolylinemapitem.cpp
- M src/imports/location/qdeclarativepolylinemapitem_p.h
- M src/imports/location/qdeclarativerectanglemapitem.cpp
- M src/imports/location/qdeclarativerectanglemapitem_p.h
- M src/imports/location/qgeomapitemgeometry_p.h
- M src/positioning/qgeopath.cpp