diff options
author | Alex Wilson <alex.wilson@nokia.com> | 2012-01-25 14:53:07 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-31 06:02:19 +0100 |
commit | e9b859d3930b36bd94246150564d0c02a28248ac (patch) | |
tree | cd105eb008668d5c6926256883dccca44bc03043 /tests | |
parent | eab6279cc27350c09ac61b6853d703ba53a2ed79 (diff) | |
download | qtlocation-e9b859d3930b36bd94246150564d0c02a28248ac.tar.gz |
Add MapMouseArea support for MapPolyline, include borders on others
* Borders are now clickable on MapCircle, MapPolygon,
and MapRectangle.
* Still issues with the top and left edges of a border not
being clickable (beyond the 0,0 point on the object). These
are not easily solved in the current implementation of
MapMouseArea.
* Amended autotests that depend on the visible width of a
MapRectangle to set border width to zero.
* Invisible borders are now totally excluded from
calculation during update.
Change-Id: Iad711b0b5aca55b51d4dd31767c472c2331bdfb2
Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative_ui/tst_map_item.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative_ui/tst_map_item.qml b/tests/auto/declarative_ui/tst_map_item.qml index 13e7db6b..a1653f13 100644 --- a/tests/auto/declarative_ui/tst_map_item.qml +++ b/tests/auto/declarative_ui/tst_map_item.qml @@ -122,6 +122,7 @@ Item { MapRectangle { id: preMapRect color: 'darkcyan' + border.width: 0 topLeft: Coordinate { latitude: 20; longitude: 20} bottomRight: Coordinate { latitude: 10; longitude: 30} MapMouseArea { @@ -138,6 +139,7 @@ Item { MapCircle { id: preMapCircle color: 'darkmagenta' + border.width: 0 center: Coordinate { latitude: 10; longitude: 30} radius: 400000 MapMouseArea { @@ -175,6 +177,7 @@ Item { MapPolygon { id: preMapPolygon color: 'darkgrey' + border.width: 0 path: [ Coordinate { latitude: 25; longitude: 5}, Coordinate { latitude: 20; longitude: 10}, |