mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refs #314, new propertyBy methods (nested indexes)
This commit is contained in:
@@ -34,6 +34,15 @@ namespace BlackMisc
|
||||
ModeS = 20
|
||||
};
|
||||
|
||||
//! Indexes
|
||||
enum ColumnIndex {
|
||||
IndexMode,
|
||||
IndexModeAsString,
|
||||
IndexTransponderCode,
|
||||
IndexTransponderCodeFormatted,
|
||||
IndexTransponderCodeAndModeFormatted
|
||||
};
|
||||
|
||||
//! Default constructor
|
||||
CTransponder() : CAvionicsBase("transponder"), m_transponderCode(0), m_transponderMode(StateStandby) {}
|
||||
|
||||
@@ -162,6 +171,12 @@ namespace BlackMisc
|
||||
//! \copydoc CValueObject::fromJson
|
||||
void fromJson(const QJsonObject &json) override;
|
||||
|
||||
//! \copydoc CValueObject::propertyByIndex
|
||||
virtual QVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const override;
|
||||
|
||||
//! \copydoc CValueObject::setPropertyByIndex(variant, index)
|
||||
virtual void setPropertyByIndex(const QVariant &variant, const BlackMisc::CPropertyIndex &index) override;
|
||||
|
||||
//! \copydoc TupleConverter<>::jsonMembers()
|
||||
static const QStringList &jsonMembers();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user