forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QGCDockWidget.h
37 lines (27 loc) · 941 Bytes
/
QGCDockWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef QGCDockWidget_h
#define QGCDockWidget_h
#include <QDockWidget>
#include <QAction>
#include <QPointer>
class QGCDockWidget : public QWidget {
Q_OBJECT
public:
/// Pass in title = QString() and action = NULL when just using as a regular widget
QGCDockWidget(const QString& title, QAction* action, QWidget *parent = 0);
void loadSettings(void);
void saveSettings(void);
void closeEvent(QCloseEvent* event);
protected:
QString _title;
QPointer<QAction> _action;
static const char* _settingsGroup;
};
#endif