1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

GCS-UI Fixes

Fixes rotation of board on hw settings page
Fixes airframe size on airframe settings page
This commit is contained in:
PT_Dreamer 2012-08-24 17:50:28 +01:00
parent 3a0ca3c724
commit 96e8d668b2
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tabWidgetPage1"> <widget class="QWidget" name="tabWidgetPage1">
<property name="autoFillBackground"> <property name="autoFillBackground">

View File

@ -61,10 +61,10 @@ ConfigCCHWWidget::ConfigCCHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0301.svg")); m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0301.svg"));
break; break;
case 0x0401: case 0x0401:
m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0401.svg")); m_telemetry->label_2->setPixmap(QPixmap(":/configgadget/images/coptercontrol.svg"));
break; break;
case 0x0402: case 0x0402:
m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0402.svg")); m_telemetry->label_2->setPixmap(QPixmap(":/configgadget/images/coptercontrol.svg"));
break; break;
case 0x0201: case 0x0201:
m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0201.svg")); m_telemetry->label_2->setPixmap(QPixmap(":/uploader/images/deviceID-0201.svg"));

View File

@ -222,6 +222,7 @@ ConfigVehicleTypeWidget::ConfigVehicleTypeWidget(QWidget *parent) : ConfigTaskWi
addToDirtyMonitor(); addToDirtyMonitor();
disableMouseWheelEvents(); disableMouseWheelEvents();
m_aircraft->quadShape->fitInView(quad, Qt::KeepAspectRatio);
} }

View File

@ -285,7 +285,6 @@ void ConfigTaskWidget::forceConnectedState()//dynamic widgets don't recieve the
void ConfigTaskWidget::onAutopilotConnect() void ConfigTaskWidget::onAutopilotConnect()
{ {
qDebug()<<"OnAutopilotConnect:"<<this->metaObject()->className();
if (utilMngr) if (utilMngr)
currentBoard = utilMngr->getBoardModel();//TODO REMEMBER TO ADD THIS TO FORCE CONNECTED FUNC ON CC3D_RELEASE currentBoard = utilMngr->getBoardModel();//TODO REMEMBER TO ADD THIS TO FORCE CONNECTED FUNC ON CC3D_RELEASE
invalidateObjects(); invalidateObjects();