From b384ac3b83ead4593b03594a5ef3d4d82fae8959 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Fri, 13 Feb 2015 15:34:22 +0100 Subject: Remove map's background in mapviewer example. Change-Id: I4010e9081d5718e18a05df6933a1297421ffccd7 Reviewed-by: Alex Blasche --- .../mapviewer/content/map/MapComponent.qml | 31 ---------------------- examples/location/mapviewer/mapviewer.qml | 10 +------ 2 files changed, 1 insertion(+), 40 deletions(-) (limited to 'examples/location') diff --git a/examples/location/mapviewer/content/map/MapComponent.qml b/examples/location/mapviewer/content/map/MapComponent.qml index a2936056..afe95c0f 100644 --- a/examples/location/mapviewer/content/map/MapComponent.qml +++ b/examples/location/mapviewer/content/map/MapComponent.qml @@ -393,37 +393,6 @@ Map { scaleTimer.restart() } - Rectangle { - id: infoLabel - width: backgroundRect.width + 10 - height: infoText.height + 5 - y: 440 - anchors.left: map.left - z: map.z + 1 - color: "dimgrey" - opacity: (infoText.text !="") ? 0.8 : 0 - - Behavior on opacity { - NumberAnimation { duration: 200 } - } - Text { - id: infoText - width: parent.width - elide: Text.ElideLeft - maximumLineCount: 4 - wrapMode: Text.Wrap - font.bold: true - font.pixelSize: 14 - style: Text.Raised; - anchors.left: parent.left - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: 5 - anchors.rightMargin: 5 - color: "white" - } - } - MouseArea { id: mouseArea property variant lastCoordinate diff --git a/examples/location/mapviewer/mapviewer.qml b/examples/location/mapviewer/mapviewer.qml index 28fc8100..d5ad89e1 100644 --- a/examples/location/mapviewer/mapviewer.qml +++ b/examples/location/mapviewer/mapviewer.qml @@ -271,7 +271,6 @@ ApplicationWindow { map = Qt.createQmlObject ('import QtLocation 5.3;\ import "content/map";\ MapComponent{\ - z : backgroundRect.z + 1;\ width: page.width;\ height: page.height;\ onFollowmeChanged: {mainMenu.isFollowMe = map.followme}\ @@ -492,14 +491,7 @@ ApplicationWindow { anchors.fill: parent focus: true initialItem: Item { - id: page - - Rectangle { - id: backgroundRect - anchors.fill: parent - color: "lightgrey" - z:2 + id: page } } - } } -- cgit v1.2.1