From a2b067e4d5d5145c17817c8d77a1a968f1065bfa Mon Sep 17 00:00:00 2001 From: James Cotton Date: Mon, 2 Jan 2012 09:19:50 -0600 Subject: [PATCH] Fix GUI bug for the GCS controller --- .../src/plugins/gcscontrol/gcscontrol.ui | 66 ++++++++++--------- .../gcscontrol/gcscontrolgadgetwidget.cpp | 1 - 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrol.ui b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrol.ui index f48029e47..024db71bb 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrol.ui +++ b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrol.ui @@ -20,7 +20,7 @@ Form - background:transparent + @@ -30,42 +30,41 @@ 5 - + + + + - - - - - GCS Control - - - - - - - Armed - - - - - - - Flight Mode: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - + + + GCS Control + + + + + + + Armed + + + + + + + Flight Mode: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - + 10 @@ -121,6 +120,9 @@ 100 + + background:transparent + diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadgetwidget.cpp b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadgetwidget.cpp index d266ec18b..68f0162f5 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadgetwidget.cpp @@ -67,7 +67,6 @@ GCSControlGadgetWidget::GCSControlGadgetWidget(QWidget *parent) : QLabel(parent) // Connect object updated event from UAVObject to also update check boxes and dropdown connect(obj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(mccChanged(UAVObject*))); - leftX = 0; leftY = 0; rightX = 0;