From 6cb8eb1407d638089dc80ccd44ebcaa4a00e7b2c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 22 Oct 2014 20:07:16 +0200 Subject: [PATCH] Improve layout of sensor calibration --- .../QGCPX4SensorCalibration.cc | 4 + .../QGCPX4SensorCalibration.ui | 199 +++++++++++------- 2 files changed, 124 insertions(+), 79 deletions(-) diff --git a/src/ui/px4_configuration/QGCPX4SensorCalibration.cc b/src/ui/px4_configuration/QGCPX4SensorCalibration.cc index a0b075944..54deff7f2 100644 --- a/src/ui/px4_configuration/QGCPX4SensorCalibration.cc +++ b/src/ui/px4_configuration/QGCPX4SensorCalibration.cc @@ -19,6 +19,10 @@ QGCPX4SensorCalibration::QGCPX4SensorCalibration(QWidget *parent) : connect(ui->accelButton, SIGNAL(clicked()), this, SLOT(accelButtonClicked())); connect(ui->diffPressureButton, SIGNAL(clicked()), this, SLOT(diffPressureButtonClicked())); + connect(ui->logCheckBox, SIGNAL(clicked(bool)), ui->textView, SLOT(setVisible(bool))); + ui->logCheckBox->setChecked(false); + ui->textView->setVisible(false); + ui->gyroButton->setEnabled(false); ui->magButton->setEnabled(false); ui->accelButton->setEnabled(false); diff --git a/src/ui/px4_configuration/QGCPX4SensorCalibration.ui b/src/ui/px4_configuration/QGCPX4SensorCalibration.ui index b1fd81425..a99e1dbae 100644 --- a/src/ui/px4_configuration/QGCPX4SensorCalibration.ui +++ b/src/ui/px4_configuration/QGCPX4SensorCalibration.ui @@ -7,7 +7,7 @@ 0 0 659 - 603 + 636 @@ -36,24 +36,75 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton border: 2px solid #465158; } - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Autopilot Orientation + + + + + + + 0 + 250 + + + + + + + + + + + + + + + + + Magnetometer Orientation + + + + + + + 150 + 120 + + + + + + + + + + + + + + - + Qt::Vertical @@ -66,8 +117,29 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton - - + + + + + + + + + + + 24 + + + + + + + false + + + + + @@ -154,76 +226,45 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton - - - - 24 + + + + - - - - Autopilot Orientation + + + + Qt::Horizontal - - - - - - 0 - 250 - - - - - - - - - - - - - - - - - + + + 40 + 20 + - + - - + + - + Log - - - - Magnetometer Orientation + + + + Qt::Horizontal - - - - - - 150 - 120 - - - - - - - - - - - - + + + 40 + 20 + + + -- 2.22.0