From 99c033bc3b3544787666d6ef9ad329c62e6f70b4 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 7 Jul 2012 21:08:11 +1000 Subject: [PATCH] Case issue with the SVG, updated comments --- .../config/cfg_vehicletypes/configmultirotorwidget.cpp | 2 +- .../src/plugins/config/configvehicletypewidget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configmultirotorwidget.cpp b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configmultirotorwidget.cpp index 3f1b9a074..d27f4c530 100644 --- a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configmultirotorwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configmultirotorwidget.cpp @@ -101,7 +101,7 @@ void ConfigMultiRotorWidget::setupUI(QString frameType) } else if (frameType == "QuadX" || frameType == "Quad X") { setComboCurrentIndex( m_aircraft->multirotorFrameType, m_aircraft->multirotorFrameType->findText("Quad X")); - quad->setElementId("quad-X"); + quad->setElementId("quad-x"); //Enable all necessary motor channel boxes... for (i=1; i <=4; i++) { diff --git a/ground/openpilotgcs/src/plugins/config/configvehicletypewidget.cpp b/ground/openpilotgcs/src/plugins/config/configvehicletypewidget.cpp index e9eca53e8..c0cd43e42 100644 --- a/ground/openpilotgcs/src/plugins/config/configvehicletypewidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configvehicletypewidget.cpp @@ -120,7 +120,7 @@ ConfigVehicleTypeWidget::ConfigVehicleTypeWidget(QWidget *parent) : ConfigTaskWi airframeTypes << "Fixed Wing" << "Multirotor" << "Helicopter" << "Ground" << "Custom"; m_aircraft->aircraftType->addItems(airframeTypes); - m_aircraft->aircraftType->setCurrentIndex(1); //Set default vehicle to Fixed Wing + m_aircraft->aircraftType->setCurrentIndex(1); //Set default vehicle to MultiRotor m_aircraft->airframesWidget->setCurrentIndex(1); // Force the tab index to match QStringList fixedWingTypes; @@ -155,7 +155,7 @@ ConfigVehicleTypeWidget::ConfigVehicleTypeWidget(QWidget *parent) : ConfigTaskWi renderer->load(QString(":/configgadget/images/multirotor-shapes.svg")); quad = new QGraphicsSvgItem(); quad->setSharedRenderer(renderer); - quad->setElementId("quad-plus"); + quad->setElementId("quad-x"); QGraphicsScene *scene = new QGraphicsScene(this); scene->addItem(quad); scene->setSceneRect(quad->boundingRect());