Browse Source

Remove ROI Indicator from toolbar

Click ROI in map to delete instead
QGC4.4
Don Gagne 1 year ago committed by Julian Oes
parent
commit
72e9d74918
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 1
      qgroundcontrol.qrc
  2. 1
      src/FirmwarePlugin/FirmwarePlugin.cc
  3. 11
      src/FlightDisplay/FlyViewMap.qml
  4. 1
      src/ui/toolbar/CMakeLists.txt

1
qgroundcontrol.qrc

@ -15,7 +15,6 @@ @@ -15,7 +15,6 @@
<file alias="MultiVehicleSelector.qml">src/ui/toolbar/MultiVehicleSelector.qml</file>
<file alias="RCRSSIIndicator.qml">src/ui/toolbar/RCRSSIIndicator.qml</file>
<file alias="RemoteIDIndicator.qml">src/ui/toolbar/RemoteIDIndicator.qml</file>
<file alias="ROIIndicator.qml">src/ui/toolbar/ROIIndicator.qml</file>
<file alias="TelemetryRSSIIndicator.qml">src/ui/toolbar/TelemetryRSSIIndicator.qml</file>
<file alias="VTOLModeIndicator.qml">src/ui/toolbar/VTOLModeIndicator.qml</file>
<file alias="APMSupportForwardingIndicator.qml">src/ui/toolbar/APMSupportForwardingIndicator.qml</file>

1
src/FirmwarePlugin/FirmwarePlugin.cc

@ -343,7 +343,6 @@ const QVariantList& FirmwarePlugin::modeIndicators(const Vehicle*) @@ -343,7 +343,6 @@ const QVariantList& FirmwarePlugin::modeIndicators(const Vehicle*)
//-- Default list of indicators for all vehicles.
if(_modeIndicatorList.size() == 0) {
_modeIndicatorList = QVariantList({
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/ROIIndicator.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/MultiVehicleSelector.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/LinkIndicator.qml")),
});

11
src/FlightDisplay/FlyViewMap.qml

@ -494,25 +494,18 @@ FlightMap { @@ -494,25 +494,18 @@ FlightMap {
z: QGroundControl.zOrderMapItems
anchorPoint.x: sourceItem.anchorPointX
anchorPoint.y: sourceItem.anchorPointY
sourceItem: MissionItemIndexLabel {
checked: true
index: -1
label: qsTr("ROI here", "Make this a Region Of Interest")
onClicked: _activeVehicle.stopGuidedModeROI()
}
//-- Visibilty controlled by actual state
function show(coord) {
roiLocationItem.coordinate = coord
}
function hide() {
}
function actionConfirmed() {
}
function actionCancelled() {
}
}
// Orbit telemetry visuals

1
src/ui/toolbar/CMakeLists.txt

@ -14,7 +14,6 @@ add_custom_target(UiToolbarQml @@ -14,7 +14,6 @@ add_custom_target(UiToolbarQml
ModeIndicator.qml
MultiVehicleSelector.qml
RCRSSIIndicator.qml
ROIIndicator.qml
SignalStrength.qml
TelemetryRSSIIndicator.qml
VTOLModeIndicator.qml

Loading…
Cancel
Save