/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/ #pragma once #include #include class ToolStripActionList : public QObject { Q_OBJECT public: ToolStripActionList(QObject* parent = nullptr); Q_PROPERTY(QQmlListProperty model READ model NOTIFY modelChanged) QQmlListProperty model(); signals: void modelChanged(void); private: static void append (QQmlListProperty* qmlListProperty, QObject* value); static int count (QQmlListProperty* qmlListProperty); static QObject* at (QQmlListProperty*, int index); static void clear (QQmlListProperty* qmlListProperty); QList _objectList; };