refs #314, new propertyBy methods (nested indexes)

This commit is contained in:
Klaus Basan
2014-08-15 18:17:15 +02:00
parent d797d76a60
commit e109d73ba2
54 changed files with 1016 additions and 754 deletions

View File

@@ -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();