diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-04-17 11:52:15 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-05-12 13:59:46 +0000 |
commit | ff93ef17cd0941d179cc98b93a9de409c4a808f3 (patch) | |
tree | e7f00302dbdddda9c9ae3563c540763dd3dd59c4 /examples/location/mapviewer/map/RectangleItem.qml | |
parent | c5ce93e132cc45fee1097b55ffe119860c9113a8 (diff) | |
download | qtlocation-ff93ef17cd0941d179cc98b93a9de409c4a808f3.tar.gz |
Update design in mapviewer example
Update marker and change colors.
Change-Id: Ia12ed0145367c5a086ec6b6828db602b4666403e
Reviewed-by: Sami Makkonen <sami.makkonen@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/location/mapviewer/map/RectangleItem.qml')
-rw-r--r-- | examples/location/mapviewer/map/RectangleItem.qml | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/examples/location/mapviewer/map/RectangleItem.qml b/examples/location/mapviewer/map/RectangleItem.qml index 21a60e98..36ec3c0f 100644 --- a/examples/location/mapviewer/map/RectangleItem.qml +++ b/examples/location/mapviewer/map/RectangleItem.qml @@ -43,9 +43,11 @@ import QtLocation 5.3 MapRectangle { id: mapRectangle - color: mousearea.containsMouse ? "lime" : "red" - opacity: 0.5 - border.width: 2.0 + color: "#46a2da" + border.color: "#190a33" + border.width: 2 + smooth: true + opacity: 0.25 function setGeometry(markers, index){ topLeft.latitude = Math.max(markers[index].coordinate.latitude, markers[index + 1].coordinate.latitude) @@ -54,21 +56,4 @@ MapRectangle { bottomRight.longitude = Math.max(markers[index].coordinate.longitude, markers[index + 1].coordinate.longitude) } - Binding { - target: mapRectangle - property: 'border.width' - value: 60 - - when: ((topLeft.latitude == -27.1144) && - (topLeft.longitude == 152.6594) && - (bottomRight.latitude == -27.7434) && - (bottomRight.longitude == 153.3021)) - } - - MouseArea { - anchors.fill:parent - id: mousearea - hoverEnabled: false - drag.target: parent - } } |