QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ToolStripActionList.cc
Go to the documentation of this file.
2
4 : QObject(parent)
5{
6
7}
8
9QQmlListProperty<QObject> ToolStripActionList::model(void)
10{
11 return QQmlListProperty<QObject>(this, this,
12 &ToolStripActionList::append,
13 &ToolStripActionList::count,
14 &ToolStripActionList::at,
15 &ToolStripActionList::clear);
16}
17
18void ToolStripActionList::append(QQmlListProperty<QObject>* qmlListProperty, QObject* value) {
19 reinterpret_cast<ToolStripActionList*>(qmlListProperty->data)->_objectList.append(value);
20}
21
22void ToolStripActionList::clear(QQmlListProperty<QObject>* qmlListProperty) {
23 reinterpret_cast<ToolStripActionList*>(qmlListProperty->data)->_objectList.clear();
24}
25
26QObject* ToolStripActionList::at(QQmlListProperty<QObject>* qmlListProperty, qsizetype index) {
27 return reinterpret_cast<ToolStripActionList*>(qmlListProperty->data)->_objectList[index];
28}
29
30qsizetype ToolStripActionList::count(QQmlListProperty<QObject>* qmlListProperty) {
31 return reinterpret_cast<ToolStripActionList*>(qmlListProperty->data)->_objectList.count();
32}
QQmlListProperty< QObject > model READ model NOTIFY modelChanged QQmlListProperty< QObject > model()
ToolStripActionList(QObject *parent=nullptr)