From 2501ff036075f099bff18514c827eb313e141352 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 23 Jul 2014 17:29:25 +0200 Subject: [PATCH] Fixed debug console location, still ugly (style sheet handling) --- src/ui/MainWindow.cc | 13 +------------ src/ui/MainWindow.h | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 2f37f7c..2c059b8 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -438,7 +438,6 @@ MainWindow::~MainWindow() } } // Delete all UAS objects - delete debugConsole; delete menuActionHelper; for (int i=0;icreateToolAction(tr("Status Details"), "UAS_STATUS_DETAILS_DOCKWIDGET"); - { - if (!debugConsole) - { - debugConsole = new DebugConsole(); - debugConsole->setWindowTitle("Communications Console"); - debugConsole->hide(); - QAction* tempAction = ui.menuTools->addAction(tr("Communication Console")); - tempAction->setCheckable(true); - connect(tempAction,SIGNAL(triggered(bool)),debugConsole,SLOT(setShown(bool))); - } - } + createDockWidget(pilotView, new DebugConsole(this), tr("Communications Console"), "COMMUNICATION_CONSOLE_DOCKWIDGET", VIEW_FLIGHT, Qt::LeftDockWidgetArea); createDockWidget(simView,new HSIDisplay(this),tr("Horizontal Situation"),"HORIZONTAL_SITUATION_INDICATOR_DOCKWIDGET",VIEW_SIMULATION,Qt::BottomDockWidgetArea); menuActionHelper->createToolAction(tr("Flight Display"), "HEAD_DOWN_DISPLAY_1_DOCKWIDGET"); diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 9605b8f..f6a267d 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -470,8 +470,6 @@ protected: QPointer toolBar; QPointer customStatusBar; - QPointer debugConsole; - QPointer mavlinkInspectorWidget; QPointer mavlinkDecoder; QPointer mavlinkSenderWidget;