16 for (
const uint32_t
id : ids) {
32 for (; i < static_cast<int>(
count()); i++) {
34 const int currentId = currentGroup->id()->rawValue().toInt();
35 if (currentId >
static_cast<int>(
id)) {
37 }
else if (currentId ==
static_cast<int>(
id)) {
43 insert(
static_cast<int>(i), newGroup);
struct __mavlink_message mavlink_message_t
FactGroupListModel(const char *factGroupNamePrefix, QObject *parent=nullptr)
virtual bool _shouldHandleMessage(const mavlink_message_t &message, QList< uint32_t > &ids) const =0
FactGroupWithId * _findOrAddFactGroupById(Vehicle *vehicle, uint32_t id)
virtual FactGroupWithId * _createFactGroupWithId(uint32_t id)=0
QString _factGroupNameWithId(uint32_t id) const
void handleMessageForFactGroupCreation(Vehicle *vehicle, const mavlink_message_t &message)
Allows for creation/updating of dynamic FactGroups based on incoming messages.
const char * _factGroupNamePrefix
FactGroupWithId is a FactGroup which has an id Fact which can be used to identify the group.
void _addFactGroup(FactGroup *factGroup, const QString &name)
QModelIndex parent(const QModelIndex &child) const override
int count() const override final
void insert(int index, QObject *object)
QmlObjectListModel(QObject *parent=nullptr)