Commit b7594100 authored by Bryant Mairs's avatar Bryant Mairs

APMToolBar no longer takes a parent QWidget argument.

parent 1d5b5b1b
......@@ -263,7 +263,7 @@ void MainWindow::init()
if (getCustomMode() == CUSTOM_MODE_APM) {
// Add the APM 'toolbar'
APMToolBar *apmToolBar = new APMToolBar(this);
APMToolBar *apmToolBar = new APMToolBar();
apmToolBar->setFlightViewAction(ui.actionFlightView);
apmToolBar->setFlightPlanViewAction(ui.actionMissionView);
apmToolBar->setHardwareViewAction(ui.actionHardwareConfig);
......
......@@ -7,7 +7,7 @@
#include "apmtoolbar.h"
APMToolBar::APMToolBar(QWidget *parent):
APMToolBar::APMToolBar():
QQuickView(), m_uas(0)
{
// Configure our QML object
......
......@@ -11,7 +11,7 @@ class APMToolBar : public QQuickView
{
Q_OBJECT
public:
explicit APMToolBar(QWidget *parent = 0);
explicit APMToolBar();
~APMToolBar();
void setFlightViewAction(QAction *action);
......
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