/**************************************************************************** * * (c) 2009-2020 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. * ****************************************************************************/#pragma once#include <QObject>#include <QQmlListProperty>classToolStripActionList:publicQObject{Q_OBJECTpublic:ToolStripActionList(QObject*parent=nullptr);Q_PROPERTY(QQmlListProperty<QObject>modelREADmodelNOTIFYmodelChanged)QQmlListProperty<QObject>model();signals:voidmodelChanged(void);private:staticvoidappend(QQmlListProperty<QObject>*qmlListProperty,QObject*value);staticintcount(QQmlListProperty<QObject>*qmlListProperty);staticQObject*at(QQmlListProperty<QObject>*,intindex);staticvoidclear(QQmlListProperty<QObject>*qmlListProperty);QList<QObject*>_objectList;};