From 40f0c65ce2e8ceff493c6ed89bf447ec2f3ffac7 Mon Sep 17 00:00:00 2001 From: "numan.uyar" Date: Thu, 18 Mar 2021 09:59:40 +0300 Subject: [PATCH] RadioComponentController fix for Custom builds Signed-off-by: numan.uyar --- src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc | 1 - src/QGCApplication.cc | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc b/src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc index 57e3b39..bf49e18 100644 --- a/src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc +++ b/src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc @@ -58,7 +58,6 @@ PX4FirmwarePlugin::PX4FirmwarePlugin() qmlRegisterType ("QGroundControl.Controllers", 1, 0, "AirframeComponentController"); qmlRegisterType ("QGroundControl.Controllers", 1, 0, "SensorsComponentController"); qmlRegisterType ("QGroundControl.Controllers", 1, 0, "PowerComponentController"); - qmlRegisterType ("QGroundControl.Controllers", 1, 0, "RadioComponentController"); struct Modes2Name { uint8_t main_mode; diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 09ea42e..8f53f7d 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -52,6 +52,7 @@ #include "QGCLoggingCategory.h" #include "ParameterEditorController.h" #include "ESP8266ComponentController.h" +#include "RadioComponentController.h" #include "ScreenToolsController.h" #include "QGCFileDialogController.h" #include "RCChannelMonitorController.h" @@ -569,6 +570,7 @@ void QGCApplication::_initCommon() qmlRegisterType (kQGCControllers, 1, 0, "ParameterEditorController"); qmlRegisterType (kQGCControllers, 1, 0, "ESP8266ComponentController"); + qmlRegisterType (kQGCControllers, 1, 0, "RadioComponentController"); qmlRegisterType (kQGCControllers, 1, 0, "ScreenToolsController"); qmlRegisterType (kQGCControllers, 1, 0, "PlanMasterController"); qmlRegisterType (kQGCControllers, 1, 0, "QGCFileDialogController");