From 6fa692b7d9674b12bf2ad7a1b55f27fc7174b454 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 15 Jul 2014 18:34:30 +0200 Subject: [PATCH] Build fix --- src/ui/QGCPX4VehicleConfig.cc | 14 +++++++------- src/ui/QGCPX4VehicleConfig.h | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index ac90a805e..69b4bab5a 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -95,14 +95,14 @@ QGCPX4VehicleConfig::QGCPX4VehicleConfig(QWidget *parent) : px4AirframeConfig = new QGCPX4AirframeConfig(this); ui->airframeLayout->addWidget(px4AirframeConfig); - px4SafetyConfig = new QGCPX4SafetyConfig(this); - ui->safetyConfigLayout->addWidget(px4SafetyConfig); + // px4SafetyConfig = new QGCPX4SafetyConfig(this); + // ui->safetyConfigLayout->addWidget(px4SafetyConfig); - px4TuningConfig = new QGCPX4TuningConfig(this); - ui->tuningLayout->addWidget(px4TuningConfig); + // px4TuningConfig = new QGCPX4TuningConfig(this); + // ui->tuningLayout->addWidget(px4TuningConfig); - px4FlightModeConfig = new QGCPX4FlightModeConfig(this); - ui->flightModeLayout->addWidget(px4FlightModeConfig); + // px4FlightModeConfig = new QGCPX4FlightModeConfig(this); + // ui->flightModeLayout->addWidget(px4FlightModeConfig); px4SensorCalibration = new QGCPX4SensorCalibration(this); ui->sensorLayout->addWidget(px4SensorCalibration); @@ -306,7 +306,7 @@ void QGCPX4VehicleConfig::sensorMenuButtonClicked() void QGCPX4VehicleConfig::tuningMenuButtonClicked() { - ui->stackedWidget->setCurrentWidget(ui->generalTab); + ui->stackedWidget->setCurrentWidget(ui->tuningTab); ui->tabTitleLabel->setText(tr("Controller Tuning")); } diff --git a/src/ui/QGCPX4VehicleConfig.h b/src/ui/QGCPX4VehicleConfig.h index 7e302d017..a0d6c23f1 100644 --- a/src/ui/QGCPX4VehicleConfig.h +++ b/src/ui/QGCPX4VehicleConfig.h @@ -41,6 +41,8 @@ public slots: void rcMenuButtonClicked(); void sensorMenuButtonClicked(); void tuningMenuButtonClicked(); + void flightModeMenuButtonClicked(); + void safetyConfigMenuButtonClicked(); void advancedMenuButtonClicked(); void airframeMenuButtonClicked(); void firmwareMenuButtonClicked(); -- 2.22.0