From 27b53bf092615771360e526f6ec48aca563a4dfe Mon Sep 17 00:00:00 2001 From: Chris Pember Date: Sat, 14 Jul 2012 21:26:38 -0700 Subject: [PATCH] deleted the commented lines, tried resizing the margins and I couldnt get it to look quite right, so I ditched it. --- .../src/plugins/config/camerastabilization.ui | 32 +++++++++++++++---- .../src/plugins/config/outputchannelform.cpp | 17 ---------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/camerastabilization.ui b/ground/openpilotgcs/src/plugins/config/camerastabilization.ui index f935b6dcb..0f7b8f980 100644 --- a/ground/openpilotgcs/src/plugins/config/camerastabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/camerastabilization.ui @@ -17,6 +17,9 @@ 12 + + 12 + @@ -33,13 +36,7 @@ 12 - - 12 - - - 12 - - + 12 @@ -90,6 +87,9 @@ + + 12 + @@ -131,6 +131,12 @@ false + + 12 + + + 12 + @@ -345,6 +351,12 @@ margin:1px; Advanced Settings (Control) + + 12 + + + 12 + @@ -756,6 +768,9 @@ value. Messages + + 12 + @@ -772,6 +787,9 @@ value. + + 12 + diff --git a/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp b/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp index 813c32a94..0aaa900ab 100644 --- a/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp +++ b/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp @@ -35,23 +35,6 @@ OutputChannelForm::OutputChannelForm(const int index, QWidget *parent, const boo m_inChannelTest(false) { ui.setupUi(this); -// if(!showLegend) -// { -// // Remove legend -// QGridLayout *grid_layout = dynamic_cast(layout()); -// Q_ASSERT(grid_layout); -// for (int col = 0; col < grid_layout->columnCount(); col++) -// { // remove every item in first row -// QLayoutItem *item = grid_layout->itemAtPosition(0, col); -// if (!item) continue; -// // get widget from layout item -// QWidget *legend_widget = item->widget(); -// if (!legend_widget) continue; -// // delete widget -// grid_layout->removeWidget(legend_widget); -// delete legend_widget; -// } -// } // The convention for OP is Channel 1 to Channel 10. ui.actuatorNumber->setText(QString("%1:").arg(m_index+1));