QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleSummaryItem.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QMetaType>
4#include <QtCore/QString>
5#include <QtQmlIntegration/QtQmlIntegration>
6
8Q_NAMESPACE
9QML_ELEMENT
10
17Q_ENUM_NS(State)
18} // namespace VehicleSummaryState
19
23{
24 Q_GADGET
25 QML_VALUE_TYPE(vehicleSummaryItem)
26 Q_PROPERTY(QString caption MEMBER caption)
27 Q_PROPERTY(QString value MEMBER value)
28 Q_PROPERTY(VehicleSummaryState::State state MEMBER state)
29 Q_PROPERTY(QString group MEMBER group)
30
31public:
34
35 QString caption;
36 QString value;
37 State state = Normal;
38 QString group;
39
40 VehicleSummaryItem() = default;
41 VehicleSummaryItem(const QString& itemCaption, const QString& itemValue, State itemState = Normal,
42 const QString& itemGroup = {})
43 : caption(itemCaption), value(itemValue), state(itemState), group(itemGroup)
44 {
45 }
46
47 bool operator==(const VehicleSummaryItem&) const = default;
48};
bool operator==(const VehicleSummaryItem &) const =default
VehicleSummaryState::State State
VehicleSummaryItem()=default
VehicleSummaryItem(const QString &itemCaption, const QString &itemValue, State itemState=Normal, const QString &itemGroup={})
@ Attention
Setup is needed or the value is not usable as it is.
@ Muted
Off, disabled or not set, which is fine.