Commit b82c8e78 authored by Don Gagne's avatar Don Gagne

Add parent in constructor

parent 278871b8
......@@ -35,8 +35,9 @@ This file is part of the QGROUNDCONTROL project
#include "UASMessageHandler.h"
#include "UASMessageView.h"
MainToolBar::MainToolBar()
: _mav(NULL)
MainToolBar::MainToolBar(QWidget* parent)
: QGCQmlWidgetHolder(parent)
, _mav(NULL)
, _toolBar(NULL)
, _currentView(ViewNone)
, _batteryVoltage(0.0)
......
......@@ -42,7 +42,7 @@ class MainToolBar : public QGCQmlWidgetHolder
Q_ENUMS(ViewType_t)
Q_ENUMS(MessageType_t)
public:
MainToolBar();
MainToolBar(QWidget* parent = NULL);
~MainToolBar();
typedef enum {
......
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