From cd310d62e96c847022939ec7ea7123222781f045 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 27 May 2017 09:49:16 -0700 Subject: [PATCH] Use image for GCS location --- qgcresources.qrc | 1 + resources/QGCLogoFull.svg | 24 ++++++++++++++++++++++++ src/FlightMap/FlightMap.qml | 12 ++++++++---- 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 resources/QGCLogoFull.svg diff --git a/qgcresources.qrc b/qgcresources.qrc index 25e0e8baa..4e2602e2c 100644 --- a/qgcresources.qrc +++ b/qgcresources.qrc @@ -185,6 +185,7 @@ resources/Play.svg resources/PowerButton.svg resources/QGCLogoBlack.svg + resources/QGCLogoFull.svg resources/QGCLogoWhite.svg resources/QGroundControlConnect.svg resources/rtl.svg diff --git a/resources/QGCLogoFull.svg b/resources/QGCLogoFull.svg new file mode 100644 index 000000000..3d7fdb67e --- /dev/null +++ b/resources/QGCLogoFull.svg @@ -0,0 +1,24 @@ + + + + + + + + + + diff --git a/src/FlightMap/FlightMap.qml b/src/FlightMap/FlightMap.qml index d774b3699..8914e6146 100644 --- a/src/FlightMap/FlightMap.qml +++ b/src/FlightMap/FlightMap.qml @@ -117,12 +117,16 @@ Map { /// Ground Station location MapQuickItem { - anchorPoint.x: sourceItem.anchorPointX - anchorPoint.y: sourceItem.anchorPointY + anchorPoint.x: sourceItem.width / 2 + anchorPoint.y: sourceItem.height / 2 visible: gcsPosition.isValid coordinate: gcsPosition - sourceItem: MissionItemIndexLabel { - label: QGroundControl.appName.charAt(0) + + sourceItem: Image { + source: "/res/QGCLogoFull" + smooth: true + fillMode: Image.PreserveAspectFit + height: ScreenTools.defaultFontPixelHeight * 1.5 } } } // Map -- 2.22.0