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