diff --git a/qgcresources.qrc b/qgcresources.qrc index 42e9f1527dc4cf3ef610b78998c2680c93b22e1e..67be2209151e4e65972a5aaa5527ca82c107f782 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 0000000000000000000000000000000000000000..2281d500a2be0a3353faf9d004f22b6619bd2766 --- /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 c087604663714a0cbb5e7b305e4fc9f00336109b..5c0065d818baa7dbe08efb0a5d902de6ed88ebe2 100644 --- a/src/FlightMap/Widgets/QGCInstrumentWidget.qml +++ b/src/FlightMap/Widgets/QGCInstrumentWidget.qml @@ -77,6 +77,24 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter } + Image { + id: gearThingy + anchors.bottom: attitude.bottom + anchors.right: attitude.right + source: "/res/gear.svg" + mipmap: true + opacity: 0.5 + width: attitude.width * 0.15 + fillMode: Image.PreserveAspectFit + MouseArea { + anchors.fill: parent + hoverEnabled: true + onEntered: gearThingy.opacity = 0.85 + onExited: gearThingy.opacity = 0.5 + onClicked: _valuesWidget.showPicker() + } + } + Rectangle { id: _spacer1 anchors.topMargin: _spacing