diff --git a/.gitignore b/.gitignore index ea04db8b7..6f863dca5 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ build-* *.so.* *.dll *.dylib +.qtc_clangd # Qt-es object_script.*.Release diff --git a/QOpenHD.pro b/QOpenHD.pro index 51050fabc..28fb86dd0 100755 --- a/QOpenHD.pro +++ b/QOpenHD.pro @@ -3,6 +3,8 @@ BASEDIR = $$IN_PWD LANGUAGE = C++ CONFIG += c++17 CONFIG+=sdk_no_version_check +CONFIG += resources_big + TRANSLATIONS = translations/QOpenHD_en.ts \ translations/QOpenHD_de.ts \ translations/QOpenHD_ru.ts \ diff --git a/qml/ui/configpopup/qopenhd_settings/AppWidgetSettingsView.qml b/qml/ui/configpopup/qopenhd_settings/AppWidgetSettingsView.qml index 4b6c7de43..f3dbd2985 100755 --- a/qml/ui/configpopup/qopenhd_settings/AppWidgetSettingsView.qml +++ b/qml/ui/configpopup/qopenhd_settings/AppWidgetSettingsView.qml @@ -153,10 +153,23 @@ ScrollView { } }*/ - SettingsCategory{ m_description: "OHD LINK / STREAMING WIDGETS" + SettingBaseElement{ + m_short_description: "Show Widgets" + Switch { + width: 32 + height: elementHeight + anchors.rightMargin: Qt.inputMethod.visible ? 96 : 36 + + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + checked: settings.show_widgets + onCheckedChanged: settings.show_widgets = checked + } + } + SettingBaseElement{ m_short_description: "Show Downlink RSSI" m_long_description: "RSSI / Stats about downlink" diff --git a/qml/ui/elements/AppSettings.qml b/qml/ui/elements/AppSettings.qml index c98669cd2..da2523395 100644 --- a/qml/ui/elements/AppSettings.qml +++ b/qml/ui/elements/AppSettings.qml @@ -115,6 +115,7 @@ Settings { // Note that low fps like on embedded devices also adds some latency - because of that, default to 100ms here property int smoothing: 33 + property bool show_widgets: true property bool show_downlink_rssi: true //Const10 property bool downlink_show_dbm_and_packets_per_card: true diff --git a/qml/ui/widgets/AirBatteryWidget.qml b/qml/ui/widgets/AirBatteryWidget.qml index c16abc8ee..de81b039f 100644 --- a/qml/ui/widgets/AirBatteryWidget.qml +++ b/qml/ui/widgets/AirBatteryWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 96 height: 55 - visible: settings.show_air_battery + visible: settings.show_air_battery && settings.show_widgets widgetIdentifier: "air_battery_widget" bw_verbose_name: "AIR BATTERY (FC)" diff --git a/qml/ui/widgets/AirspeedTempWidget.qml b/qml/ui/widgets/AirspeedTempWidget.qml index 0ea335031..4644a3e13 100644 --- a/qml/ui/widgets/AirspeedTempWidget.qml +++ b/qml/ui/widgets/AirspeedTempWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 30 height: 30 - visible: settings.show_airspeed_temp + visible: settings.show_airspeed_temp && settings.show_widgets widgetIdentifier: "airspeed_temp_widget" bw_verbose_name: "AIRSPEED SENSOR TEMP" diff --git a/qml/ui/widgets/AltitudeSecondWidget.qml b/qml/ui/widgets/AltitudeSecondWidget.qml index 65c4f250c..c9c112c94 100644 --- a/qml/ui/widgets/AltitudeSecondWidget.qml +++ b/qml/ui/widgets/AltitudeSecondWidget.qml @@ -17,7 +17,7 @@ BaseWidget { defaultYOffset: 64 dragging: false - visible: settings.show_altitude_second + visible: settings.show_altitude_second && settings.show_widgets widgetIdentifier: "altitude_second_widget" bw_verbose_name: "SECOND ALTITUDE" diff --git a/qml/ui/widgets/AltitudeWidget.qml b/qml/ui/widgets/AltitudeWidget.qml index 86b357dbc..272a8b6fb 100644 --- a/qml/ui/widgets/AltitudeWidget.qml +++ b/qml/ui/widgets/AltitudeWidget.qml @@ -19,7 +19,7 @@ BaseWidget { defaultXOffset: 40 defaultVCenter: true - visible: settings.altitude_ladder_show + visible: settings.altitude_ladder_show && settings.show_widgets widgetIdentifier: "altitude_widget" bw_verbose_name: "ALTITUDE" diff --git a/qml/ui/widgets/AoaWidget.qml b/qml/ui/widgets/AoaWidget.qml index a1bfc13be..5e2e44a01 100644 --- a/qml/ui/widgets/AoaWidget.qml +++ b/qml/ui/widgets/AoaWidget.qml @@ -18,7 +18,7 @@ BaseWidget { defaultXOffset: 60 defaultVCenter: true - visible: settings.show_aoa + visible: settings.show_aoa && settings.show_widgets widgetIdentifier: "aoa_widget" bw_verbose_name: "ANGLE OF ATTACK" diff --git a/qml/ui/widgets/ArrowWidget.qml b/qml/ui/widgets/ArrowWidget.qml index ea8ba1680..642b9c571 100644 --- a/qml/ui/widgets/ArrowWidget.qml +++ b/qml/ui/widgets/ArrowWidget.qml @@ -13,7 +13,7 @@ BaseWidget { height: 48 defaultYOffset: 135 - visible: settings.show_arrow + visible: settings.show_arrow && settings.show_widgets widgetIdentifier: "arrow_widget" bw_verbose_name: "HOME ARROW" diff --git a/qml/ui/widgets/ControlWidget.qml b/qml/ui/widgets/ControlWidget.qml index e39e7b4c5..d649df211 100644 --- a/qml/ui/widgets/ControlWidget.qml +++ b/qml/ui/widgets/ControlWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 100 height: 50 - visible: settings.show_control + visible: settings.show_control && settings.show_widgets widgetIdentifier: "control_widget" bw_verbose_name: "CONTROL INPUTS" diff --git a/qml/ui/widgets/DevStreamingInfo.qml b/qml/ui/widgets/DevStreamingInfo.qml index edc244e6a..82bc4cfe2 100644 --- a/qml/ui/widgets/DevStreamingInfo.qml +++ b/qml/ui/widgets/DevStreamingInfo.qml @@ -6,7 +6,7 @@ Item { anchors.top: parent.top anchors.left: parent.left anchors.topMargin: 100 - visible: settings.show_dev_stats_overlay && !sidebar.m_extra_is_visible + visible: settings.show_dev_stats_overlay && !sidebar.m_extra_is_visible && settings.show_widgets Column{ width: parent.width diff --git a/qml/ui/widgets/DistanceSensorWidget.qml b/qml/ui/widgets/DistanceSensorWidget.qml index 91fc27932..4539c702f 100644 --- a/qml/ui/widgets/DistanceSensorWidget.qml +++ b/qml/ui/widgets/DistanceSensorWidget.qml @@ -17,7 +17,7 @@ BaseWidget { defaultYOffset: 128+40 dragging: false - visible: settings.show_distance_sensor_widget + visible: settings.show_distance_sensor_widget && settings.show_widgets widgetIdentifier: "distance_sensor_widget" bw_verbose_name: "DISTANCE SENSOR" diff --git a/qml/ui/widgets/EscTempWidget.qml b/qml/ui/widgets/EscTempWidget.qml index ada241f73..2036bf759 100644 --- a/qml/ui/widgets/EscTempWidget.qml +++ b/qml/ui/widgets/EscTempWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 30 height: 30 - visible: settings.show_esc_temp + visible: settings.show_esc_temp && settings.show_widgets widgetIdentifier: "esc_temp_widget" bw_verbose_name: "EST TEMPERATURE" diff --git a/qml/ui/widgets/ExampleWidget.qml b/qml/ui/widgets/ExampleWidget.qml index 664cb1f5a..5193be517 100644 --- a/qml/ui/widgets/ExampleWidget.qml +++ b/qml/ui/widgets/ExampleWidget.qml @@ -10,7 +10,7 @@ BaseWidget { visible: settings.show_example_widget - widgetIdentifier: "example_widget" + widgetIdentifier: "example_widget" && settings.show_widgets defaultAlignment: 0 defaultXOffset: 92 diff --git a/qml/ui/widgets/FlightDistanceWidget.qml b/qml/ui/widgets/FlightDistanceWidget.qml index 4ebf2fbda..150a37b1f 100644 --- a/qml/ui/widgets/FlightDistanceWidget.qml +++ b/qml/ui/widgets/FlightDistanceWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 96 height: 24 - visible: settings.show_flight_distance + visible: settings.show_flight_distance && settings.show_widgets widgetIdentifier: "flight_distance_widget" bw_verbose_name: "TOTAL FLIGHT DISTANCE" diff --git a/qml/ui/widgets/FlightMahKmWidget.qml b/qml/ui/widgets/FlightMahKmWidget.qml index 10bc7c731..916a879b6 100644 --- a/qml/ui/widgets/FlightMahKmWidget.qml +++ b/qml/ui/widgets/FlightMahKmWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 130 height: 24 - visible: settings.show_flight_mah_km + visible: settings.show_flight_mah_km && settings.show_widgets widgetIdentifier: "flight_mah_km_widget" bw_verbose_name: "EFFICIENCY IN MAH/KM" diff --git a/qml/ui/widgets/FlightMahWidget.qml b/qml/ui/widgets/FlightMahWidget.qml index efa6704eb..953ce66f1 100644 --- a/qml/ui/widgets/FlightMahWidget.qml +++ b/qml/ui/widgets/FlightMahWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 96 height: 24 - visible: settings.show_flight_mah + visible: settings.show_flight_mah && settings.show_widgets widgetIdentifier: "flight_mah_widget" bw_verbose_name: "MAH (FC CONSUMED)" diff --git a/qml/ui/widgets/FlightModeWidget.qml b/qml/ui/widgets/FlightModeWidget.qml index 8f08134bf..08343b034 100644 --- a/qml/ui/widgets/FlightModeWidget.qml +++ b/qml/ui/widgets/FlightModeWidget.qml @@ -13,7 +13,7 @@ BaseWidget { width: 212 height: 48 - visible: settings.show_flight_mode + visible: settings.show_flight_mode && settings.show_widgets widgetIdentifier: "flight_mode_widget" bw_verbose_name: "FLIGHT MODE" diff --git a/qml/ui/widgets/FlightTimeWidget.qml b/qml/ui/widgets/FlightTimeWidget.qml index 038a86293..dd5ace9d5 100644 --- a/qml/ui/widgets/FlightTimeWidget.qml +++ b/qml/ui/widgets/FlightTimeWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 96 height: 24 - visible: settings.show_flight_time + visible: settings.show_flight_time && settings.show_widgets widgetIdentifier: "flight_time_widget" bw_verbose_name: "FLIGHT TIME" diff --git a/qml/ui/widgets/FpvWidget.qml b/qml/ui/widgets/FpvWidget.qml index 5520a484f..5541f01b8 100644 --- a/qml/ui/widgets/FpvWidget.qml +++ b/qml/ui/widgets/FpvWidget.qml @@ -12,7 +12,7 @@ BaseWidget { width: 50 height: 55 - visible: settings.show_flight_path_vector + visible: settings.show_flight_path_vector && settings.show_widgets widgetIdentifier: "fpv_widget" bw_verbose_name: "FLIGHT PATH VECTOR" diff --git a/qml/ui/widgets/GPIOWidget.qml b/qml/ui/widgets/GPIOWidget.qml index b42204190..a7f4650f2 100644 --- a/qml/ui/widgets/GPIOWidget.qml +++ b/qml/ui/widgets/GPIOWidget.qml @@ -15,7 +15,7 @@ BaseWidget { width: 64 height: 64 - visible: settings.show_gpio + visible: settings.show_gpio && settings.show_widgets widgetIdentifier: "gpio_widget" diff --git a/qml/ui/widgets/GPSWidget.qml b/qml/ui/widgets/GPSWidget.qml index b939a04ff..f447e2c69 100644 --- a/qml/ui/widgets/GPSWidget.qml +++ b/qml/ui/widgets/GPSWidget.qml @@ -12,7 +12,7 @@ BaseWidget { width: 96 height: 24 - visible: settings.show_gps + visible: settings.show_gps && settings.show_widgets widgetIdentifier: "gps_widget" bw_verbose_name: "GPS WIDGET" diff --git a/qml/ui/widgets/GroundPowerWidget.qml b/qml/ui/widgets/GroundPowerWidget.qml index 2dbebdd72..0f19538d3 100644 --- a/qml/ui/widgets/GroundPowerWidget.qml +++ b/qml/ui/widgets/GroundPowerWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 96 height: 55 - visible: settings.show_ground_battery + visible: settings.show_ground_battery && settings.show_widgets && _ohdSystemGround.ina219_current_milliamps !== -1 widgetIdentifier: "ground_battery_widget" bw_verbose_name: "GROUND BATTERY" diff --git a/qml/ui/widgets/HeadingWidget.qml b/qml/ui/widgets/HeadingWidget.qml index 1c750ca78..34ebd497a 100644 --- a/qml/ui/widgets/HeadingWidget.qml +++ b/qml/ui/widgets/HeadingWidget.qml @@ -12,7 +12,7 @@ BaseWidget { width: 48 height: 48 - visible: settings.show_heading + visible: settings.show_heading && settings.show_widgets defaultYOffset: 50 diff --git a/qml/ui/widgets/HomeDistanceWidget.qml b/qml/ui/widgets/HomeDistanceWidget.qml index c996a567e..feedca7b1 100644 --- a/qml/ui/widgets/HomeDistanceWidget.qml +++ b/qml/ui/widgets/HomeDistanceWidget.qml @@ -14,7 +14,7 @@ BaseWidget { width: 96 height: 24 - visible: settings.show_home_distance + visible: settings.show_home_distance && settings.show_widgets widgetIdentifier: "home_distance_widget" bw_verbose_name: "HOME DISTANCE" diff --git a/qml/ui/widgets/HorizonWidget.qml b/qml/ui/widgets/HorizonWidget.qml index 02c1cc0ca..884c2ca97 100644 --- a/qml/ui/widgets/HorizonWidget.qml +++ b/qml/ui/widgets/HorizonWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 250 height: 48 - visible: settings.show_horizon + visible: settings.show_horizon && settings.show_widgets widgetIdentifier: "horizon_widget" bw_verbose_name: "ARTIFICIAL HORIZON" diff --git a/qml/ui/widgets/ImuTempWidget.qml b/qml/ui/widgets/ImuTempWidget.qml index c3752271c..bdc4c7982 100644 --- a/qml/ui/widgets/ImuTempWidget.qml +++ b/qml/ui/widgets/ImuTempWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 30 height: 30 - visible: settings.show_imu_temp + visible: settings.show_imu_temp && settings.show_widgets widgetIdentifier: "imu_temp_widget" bw_verbose_name: "IMU TEMPERATURE" diff --git a/qml/ui/widgets/LinkDownRSSIWidget.qml b/qml/ui/widgets/LinkDownRSSIWidget.qml index 6ce4d4301..965db3513 100644 --- a/qml/ui/widgets/LinkDownRSSIWidget.qml +++ b/qml/ui/widgets/LinkDownRSSIWidget.qml @@ -16,7 +16,7 @@ BaseWidget { width: 112 height: 48 - visible: settings.show_downlink_rssi + visible: settings.show_downlink_rssi && settings.show_widgets widgetIdentifier: "downlink_rssi_widget" bw_verbose_name: "DOWNLINK/GND RSSI" diff --git a/qml/ui/widgets/LinkUpRSSIWidget.qml b/qml/ui/widgets/LinkUpRSSIWidget.qml index a84302284..04a51f87c 100644 --- a/qml/ui/widgets/LinkUpRSSIWidget.qml +++ b/qml/ui/widgets/LinkUpRSSIWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 112 height: 48 - visible: settings.show_uplink_rssi + visible: settings.show_uplink_rssi && settings.show_widgets widgetIdentifier: "uplink_rssi_widget" bw_verbose_name: "UPLINK/AIR RSSI" diff --git a/qml/ui/widgets/MessageHUD.qml b/qml/ui/widgets/MessageHUD.qml index e85cac077..b5314491b 100644 --- a/qml/ui/widgets/MessageHUD.qml +++ b/qml/ui/widgets/MessageHUD.qml @@ -14,7 +14,7 @@ BaseWidget { width: 480 height: 5*25 // Up to 5 simultaneous messages - visible: settings.show_message_hud + visible: settings.show_message_hud && settings.show_widgets widgetIdentifier: "message_hud_widget" diff --git a/qml/ui/widgets/MissionWidget.qml b/qml/ui/widgets/MissionWidget.qml index 6ed8d47d1..68282da18 100644 --- a/qml/ui/widgets/MissionWidget.qml +++ b/qml/ui/widgets/MissionWidget.qml @@ -16,7 +16,7 @@ BaseWidget { width: 96 height: 25 - visible: settings.show_mission + visible: settings.show_mission && settings.show_widgets widgetIdentifier: "mission_widget" bw_verbose_name: "MISSIONS" diff --git a/qml/ui/widgets/PerformanceHorizonWidget2.qml b/qml/ui/widgets/PerformanceHorizonWidget2.qml index ff81b009b..183fed0b5 100644 --- a/qml/ui/widgets/PerformanceHorizonWidget2.qml +++ b/qml/ui/widgets/PerformanceHorizonWidget2.qml @@ -12,7 +12,7 @@ BaseWidget { width: 250 height: 48 - visible: settings.show_performance_horizon + visible: settings.show_performance_horizon && settings.show_widgets widgetIdentifier: "horizon_performance2" bw_verbose_name: "ARTIFICIAL HORIZON 2" diff --git a/qml/ui/widgets/PressTempWidget.qml b/qml/ui/widgets/PressTempWidget.qml index 009107ebd..47d7e6e9a 100644 --- a/qml/ui/widgets/PressTempWidget.qml +++ b/qml/ui/widgets/PressTempWidget.qml @@ -11,7 +11,7 @@ BaseWidget { width: 30 height: 30 - visible: settings.show_press_temp + visible: settings.show_press_temp && settings.show_widgets widgetIdentifier: "press_temp_widget" bw_verbose_name: "PREASSURE SENSOR TEMP" diff --git a/qml/ui/widgets/QRenderStatsWidget.qml b/qml/ui/widgets/QRenderStatsWidget.qml index 5a1c1a2c8..be00b582b 100644 --- a/qml/ui/widgets/QRenderStatsWidget.qml +++ b/qml/ui/widgets/QRenderStatsWidget.qml @@ -15,7 +15,7 @@ BaseWidget { width: 50 height: 48 - visible: settings.qrenderstats_show + visible: settings.qrenderstats_show && settings.show_widgets widgetIdentifier: "q_render_stats_widget" diff --git a/qml/ui/widgets/RCRssiWidget.qml b/qml/ui/widgets/RCRssiWidget.qml index 6147f9574..c233cba0b 100644 --- a/qml/ui/widgets/RCRssiWidget.qml +++ b/qml/ui/widgets/RCRssiWidget.qml @@ -13,7 +13,7 @@ BaseWidget { width: 50 height: 30 - visible: settings.show_rc_rssi + visible: settings.show_rc_rssi && settings.show_widgets widgetIdentifier: "rc_rssi_widget" bw_verbose_name: "RC RSSI" diff --git a/qml/ui/widgets/RollWidget.qml b/qml/ui/widgets/RollWidget.qml index 6a855c15c..d7b47ae8c 100644 --- a/qml/ui/widgets/RollWidget.qml +++ b/qml/ui/widgets/RollWidget.qml @@ -12,7 +12,7 @@ BaseWidget { width: 100 height: 30 - visible: settings.bank_angle_indicator_widget_show + visible: settings.bank_angle_indicator_widget_show && settings.show_widgets widgetIdentifier: "roll_widget" bw_verbose_name: "BANK ANGLE INDICATOR" diff --git a/qml/ui/widgets/SOCStatusWidgetAir.qml b/qml/ui/widgets/SOCStatusWidgetAir.qml index 123489536..224db2f82 100644 --- a/qml/ui/widgets/SOCStatusWidgetAir.qml +++ b/qml/ui/widgets/SOCStatusWidgetAir.qml @@ -11,7 +11,7 @@ SOCStatusWidgetGeneric { width: 112 height: 24 - visible: settings.show_air_status + visible: settings.show_air_status && settings.show_widgets defaultAlignment: 1 defaultXOffset: 128 diff --git a/qml/ui/widgets/SOCStatusWidgetGeneric.qml b/qml/ui/widgets/SOCStatusWidgetGeneric.qml index f6998b6b2..85264c85f 100644 --- a/qml/ui/widgets/SOCStatusWidgetGeneric.qml +++ b/qml/ui/widgets/SOCStatusWidgetGeneric.qml @@ -11,7 +11,7 @@ BaseWidget { width: 112 height: 24 - visible: settings.show_air_status + visible: settings.show_air_status && settings.show_widgets widgetIdentifier: "air_status_widget" bw_verbose_name: "CPU LOAD AIR" diff --git a/qml/ui/widgets/SOCStatusWidgetGround.qml b/qml/ui/widgets/SOCStatusWidgetGround.qml index 84883793d..5f409a568 100644 --- a/qml/ui/widgets/SOCStatusWidgetGround.qml +++ b/qml/ui/widgets/SOCStatusWidgetGround.qml @@ -11,7 +11,7 @@ SOCStatusWidgetGeneric { width: 112 height: 24 - visible: settings.show_ground_status + visible: settings.show_ground_status && settings.show_widgets defaultAlignment: 1 defaultXOffset: 128 diff --git a/qml/ui/widgets/SpeedSecondWidget.qml b/qml/ui/widgets/SpeedSecondWidget.qml index 9cac2e00d..193f9f7ab 100644 --- a/qml/ui/widgets/SpeedSecondWidget.qml +++ b/qml/ui/widgets/SpeedSecondWidget.qml @@ -17,7 +17,7 @@ BaseWidget { defaultYOffset: 128 dragging: false - visible: settings.show_speed_second && !sidebar.m_is_active + visible: settings.show_speed_second && !sidebar.m_is_active && settings.show_widgets widgetIdentifier: "speed_second_widget" bw_verbose_name: "SECOND SPEED" diff --git a/qml/ui/widgets/SpeedWidget.qml b/qml/ui/widgets/SpeedWidget.qml index b20cf3e9a..dd9eaf4bf 100644 --- a/qml/ui/widgets/SpeedWidget.qml +++ b/qml/ui/widgets/SpeedWidget.qml @@ -13,7 +13,7 @@ BaseWidget { width: 64 height: 24 - visible: settings.speed_ladder_show && !sidebar.m_is_active + visible: settings.speed_ladder_show && !sidebar.m_is_active && settings.show_widgets defaultXOffset: 20 defaultVCenter: true diff --git a/qml/ui/widgets/ThrottleWidget.qml b/qml/ui/widgets/ThrottleWidget.qml index 12db840d6..5b6124a66 100644 --- a/qml/ui/widgets/ThrottleWidget.qml +++ b/qml/ui/widgets/ThrottleWidget.qml @@ -19,7 +19,7 @@ BaseWidget { width: 96 height: 68 - visible: settings.show_throttle + visible: settings.show_throttle && settings.show_widgets widgetIdentifier: "throttle_widget" bw_verbose_name: "THROTTLE" diff --git a/qml/ui/widgets/UAVTimeWiget.qml b/qml/ui/widgets/UAVTimeWiget.qml index d1a60397b..aa0b867ad 100644 --- a/qml/ui/widgets/UAVTimeWiget.qml +++ b/qml/ui/widgets/UAVTimeWiget.qml @@ -19,7 +19,7 @@ BaseWidget { defaultYOffset: 128+80 dragging: false - visible: settings.show_time_widget + visible: settings.show_time_widget && settings.show_widgets widgetIdentifier: "timer_widget" bw_verbose_name: "GPS TIME" diff --git a/qml/ui/widgets/VerticalSpeedGaugeWidget.qml b/qml/ui/widgets/VerticalSpeedGaugeWidget.qml index b17f957e9..b7d508c8e 100644 --- a/qml/ui/widgets/VerticalSpeedGaugeWidget.qml +++ b/qml/ui/widgets/VerticalSpeedGaugeWidget.qml @@ -16,7 +16,7 @@ BaseWidget { defaultHCenter: false defaultVCenter: true - visible: settings.show_vertical_speed_gauge_widget + visible: settings.show_vertical_speed_gauge_widget && settings.show_widgets widgetIdentifier: "vertical_speed_gauge_widget" bw_verbose_name: "VERTICAL SPEED (CLIMB)" diff --git a/qml/ui/widgets/VerticalSpeedSimpleWidget.qml b/qml/ui/widgets/VerticalSpeedSimpleWidget.qml index 61e259172..b993d4687 100644 --- a/qml/ui/widgets/VerticalSpeedSimpleWidget.qml +++ b/qml/ui/widgets/VerticalSpeedSimpleWidget.qml @@ -24,7 +24,7 @@ BaseWidget { defaultHCenter: false defaultVCenter: false - visible: settings.show_vertical_speed_simple_widget + visible: settings.show_vertical_speed_simple_widget && settings.show_widgets widgetIdentifier: "vertical_speed_simple_widget" bw_verbose_name: "VERTICAL SPEED (CLIMB)" diff --git a/qml/ui/widgets/VibrationWidget.qml b/qml/ui/widgets/VibrationWidget.qml index 9ed96d361..f166cfee5 100644 --- a/qml/ui/widgets/VibrationWidget.qml +++ b/qml/ui/widgets/VibrationWidget.qml @@ -18,7 +18,7 @@ BaseWidget { defaultHCenter: false defaultVCenter: false - visible: settings.show_vibration + visible: settings.show_vibration && settings.show_widgets widgetIdentifier: "vibration_widget" bw_verbose_name: "VIBRATION" diff --git a/qml/ui/widgets/VideoBitrateWidgetPrimary.qml b/qml/ui/widgets/VideoBitrateWidgetPrimary.qml index ec03e6723..a2c2f1d9b 100644 --- a/qml/ui/widgets/VideoBitrateWidgetPrimary.qml +++ b/qml/ui/widgets/VideoBitrateWidgetPrimary.qml @@ -9,7 +9,7 @@ import Qt.labs.settings 1.0 import OpenHD 1.0 VideoBitrateWidgetGeneric{ - visible: settings.show_bitrate + visible: settings.show_bitrate && settings.show_widgets m_is_for_primary_camera: true diff --git a/qml/ui/widgets/WBLinkRateControlWidget.qml b/qml/ui/widgets/WBLinkRateControlWidget.qml index 3d97a128c..8558fc6f0 100644 --- a/qml/ui/widgets/WBLinkRateControlWidget.qml +++ b/qml/ui/widgets/WBLinkRateControlWidget.qml @@ -17,7 +17,7 @@ BaseWidget { width: 90 height: 40 - visible: settings.wb_link_rate_control_widget_show + visible: settings.wb_link_rate_control_widget_show && settings.show_widgets widgetIdentifier: "wb_link_rate_control_widget" bw_verbose_name: "WB LIVE RATE CONTROL" diff --git a/qml/ui/widgets/WindWidget.qml b/qml/ui/widgets/WindWidget.qml index b48d6c1cc..c57975442 100644 --- a/qml/ui/widgets/WindWidget.qml +++ b/qml/ui/widgets/WindWidget.qml @@ -20,7 +20,7 @@ BaseWidget { width: 50 height: 50 - visible: settings.show_wind + visible: settings.show_wind && settings.show_widgets widgetIdentifier: "wind_widget" bw_verbose_name: "WIND"