Commit c051b59a authored by Tomaz Canabrava's avatar Tomaz Canabrava

Fixed Style for switch

Too used to Kernel Formatting Style.
Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 0fcc718d
...@@ -373,14 +373,30 @@ void MainWindow::_createInnerDockWidget(const QString& widgetName) ...@@ -373,14 +373,30 @@ void MainWindow::_createInnerDockWidget(const QString& widgetName)
QAction *action = _mapName2Action[widgetName]; QAction *action = _mapName2Action[widgetName];
switch(action->data().toInt()) { switch(action->data().toInt()) {
case MAVLINK_INSPECTOR: widget = new QGCMAVLinkInspector(widgetName, action, MAVLinkProtocol::instance(),this); break; case MAVLINK_INSPECTOR:
case CUSTOM_COMMAND: widget = new CustomCommandWidget(widgetName, action, this); break; widget = new QGCMAVLinkInspector(widgetName, action, MAVLinkProtocol::instance(),this);
case ONBOARD_FILES: widget = new QGCUASFileViewMulti(widgetName, action, this); break; break;
case STATUS_DETAILS: widget = new UASInfoWidget(widgetName, action, this); break; case CUSTOM_COMMAND:
case PRIMARY_FLIGHT_DISPLAY: widget = new FlightDisplayWidget(widgetName, action, this); break; widget = new CustomCommandWidget(widgetName, action, this);
case HIL_CONFIG: widget = new HILDockWidget(widgetName, action, this); break; break;
case ANALYZE: widget = new Linecharts(widgetName, action, mavlinkDecoder, this); break; case ONBOARD_FILES:
case INFO_VIEW: widget= new QGCTabbedInfoView(widgetName, action, this); break; widget = new QGCUASFileViewMulti(widgetName, action, this);
break;
case STATUS_DETAILS:
widget = new UASInfoWidget(widgetName, action, this);
break;
case PRIMARY_FLIGHT_DISPLAY:
widget = new FlightDisplayWidget(widgetName, action, this);
break;
case HIL_CONFIG:
widget = new HILDockWidget(widgetName, action, this);
break;
case ANALYZE:
widget = new Linecharts(widgetName, action, mavlinkDecoder, this);
break;
case INFO_VIEW:
widget= new QGCTabbedInfoView(widgetName, action, this);
break;
} }
if(action->data().toInt() == INFO_VIEW) { if(action->data().toInt() == INFO_VIEW) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment