Commit cab41473 authored by Don Gagne's avatar Don Gagne

Fix failed connection

MainWindow::loadDataView has been commented out for 9 months now.
Removed commented out code instead of leaving cruft in.
parent 5c6da8d4
...@@ -2045,27 +2045,6 @@ void MainWindow::loadMAVLinkView() ...@@ -2045,27 +2045,6 @@ void MainWindow::loadMAVLinkView()
} }
} }
//void MainWindow::loadDataView(QString fileName)
//{
// // Plot is now selected, now load data from file
// if (dataView)
// {
// //dataView->setCentralWidget(new QGCDataPlot2D(this));
// QGCDataPlot2D *plot = qobject_cast<QGCDataPlot2D*>(dataView->centralWidget());
// if (plot)
// {
// plot->loadFile(fileName);
// }
// }
// /*QStackedWidget *centerStack = dynamic_cast<QStackedWidget*>(centralWidget());
// if (centerStack)
// {
// centerStack->setCurrentWidget(dataView);
// dataplotWidget->loadFile(fileName);
// }*/
//}
QList<QAction*> MainWindow::listLinkMenuActions() QList<QAction*> MainWindow::listLinkMenuActions()
{ {
return ui.menuNetwork->actions(); return ui.menuNetwork->actions();
......
...@@ -281,9 +281,6 @@ public slots: ...@@ -281,9 +281,6 @@ public slots:
void closeEvent(QCloseEvent* event); void closeEvent(QCloseEvent* event);
/** @brief Load data view, allowing to plot flight data */
// void loadDataView(QString fileName);
/** /**
* @brief Shows a Widget from the center stack based on the action sender * @brief Shows a Widget from the center stack based on the action sender
* *
......
...@@ -22,8 +22,6 @@ Linecharts::Linecharts(QWidget *parent) : ...@@ -22,8 +22,6 @@ Linecharts::Linecharts(QWidget *parent) :
this, SLOT(addSystem(UASInterface*))); this, SLOT(addSystem(UASInterface*)));
connect(UASManager::instance(), SIGNAL(activeUASSet(int)), connect(UASManager::instance(), SIGNAL(activeUASSet(int)),
this, SLOT(selectSystem(int))); this, SLOT(selectSystem(int)));
connect(this, SIGNAL(logfileWritten(QString)),
MainWindow::instance(), SLOT(loadDataView(QString)));
} }
void Linecharts::showEvent(QShowEvent* event) void Linecharts::showEvent(QShowEvent* event)
......
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