From c051b59a096505763a21669226166cc3a25684bf Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 27 Oct 2015 14:29:30 -0200 Subject: [PATCH] Fixed Style for switch Too used to Kernel Formatting Style. Signed-off-by: Tomaz Canabrava --- src/ui/MainWindow.cc | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 9a369ca46..998a5cba7 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -373,14 +373,30 @@ void MainWindow::_createInnerDockWidget(const QString& widgetName) QAction *action = _mapName2Action[widgetName]; switch(action->data().toInt()) { - case MAVLINK_INSPECTOR: widget = new QGCMAVLinkInspector(widgetName, action, MAVLinkProtocol::instance(),this); break; - case CUSTOM_COMMAND: widget = new CustomCommandWidget(widgetName, action, this); break; - case ONBOARD_FILES: 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; + case MAVLINK_INSPECTOR: + widget = new QGCMAVLinkInspector(widgetName, action, MAVLinkProtocol::instance(),this); + break; + case CUSTOM_COMMAND: + widget = new CustomCommandWidget(widgetName, action, this); + break; + case ONBOARD_FILES: + 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) { -- 2.22.0