QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ToolStripActionList.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QObject>
4#include <QtQml/QQmlListProperty>
5#include <QtQmlIntegration/QtQmlIntegration>
6
7class ToolStripActionList : public QObject
8{
9 Q_OBJECT
10 QML_ELEMENT
11public:
12 explicit ToolStripActionList(QObject* parent = nullptr);
13
14 Q_PROPERTY(QQmlListProperty<QObject> model READ model NOTIFY modelChanged)
15
16 QQmlListProperty<QObject> model();
17
18signals:
19 void modelChanged(void);
20
21private:
22 static void append (QQmlListProperty<QObject>* qmlListProperty, QObject* value);
23 static qsizetype count (QQmlListProperty<QObject>* qmlListProperty);
24 static QObject* at (QQmlListProperty<QObject>*, qsizetype index);
25 static void clear (QQmlListProperty<QObject>* qmlListProperty);
26
27 QList<QObject*> _objectList;
28};
void modelChanged(void)
QQmlListProperty< QObject > model READ model NOTIFY modelChanged QQmlListProperty< QObject > model()