From 6a50472b9dce68c2bca9b6253a2ac1ef62c65727 Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Wed, 24 Feb 2016 13:04:12 -0500 Subject: [PATCH] Adding a little gear indicator to flight widget. --- qgcresources.qrc | 1 + resources/gear.svg | 17 +++++++++++++++++ src/FlightMap/Widgets/QGCInstrumentWidget.qml | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 resources/gear.svg diff --git a/qgcresources.qrc b/qgcresources.qrc index 42e9f15..67be220 100644 --- a/qgcresources.qrc +++ b/qgcresources.qrc @@ -138,6 +138,7 @@ resources/ArrowDown.svg resources/buttonLeft.svg resources/buttonRight.svg + resources/gear.svg resources/JoystickBezel.png resources/JoystickBezelLight.png resources/notile.png diff --git a/resources/gear.svg b/resources/gear.svg new file mode 100644 index 0000000..2281d50 --- /dev/null +++ b/resources/gear.svg @@ -0,0 +1,17 @@ + + + + + diff --git a/src/FlightMap/Widgets/QGCInstrumentWidget.qml b/src/FlightMap/Widgets/QGCInstrumentWidget.qml index c087604..0631a90 100644 --- a/src/FlightMap/Widgets/QGCInstrumentWidget.qml +++ b/src/FlightMap/Widgets/QGCInstrumentWidget.qml @@ -77,6 +77,15 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter } + Image { + anchors.bottom: attitude.bottom + anchors.right: attitude.right + source: "/res/gear.svg" + mipmap: true + width: attitude.width * 0.15 + fillMode: Image.PreserveAspectFit + } + Rectangle { id: _spacer1 anchors.topMargin: _spacing