mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #655, Change signature (order) of setProperty/compareProperty
This commit is contained in:
committed by
Roland Winklmeier
parent
49094115b1
commit
0f5d2a29a8
@@ -125,17 +125,17 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
template <class AVIO>
|
||||
void CModulator<AVIO>::setPropertyByIndex(const CVariant &variant, const CPropertyIndex &index)
|
||||
void CModulator<AVIO>::setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant)
|
||||
{
|
||||
if (index.isMyself()) { Q_ASSERT_X(false, Q_FUNC_INFO, "Wrong index to base template"); return; }
|
||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexActiveFrequency:
|
||||
this->m_frequencyActive.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
this->m_frequencyActive.setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
break;
|
||||
case IndexStandbyFrequency:
|
||||
this->m_frequencyStandby.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
this->m_frequencyStandby.setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
break;
|
||||
case IndexEnabled:
|
||||
this->setEnabled(variant.toBool());
|
||||
@@ -147,7 +147,7 @@ namespace BlackMisc
|
||||
this->setVolumeOutput(variant.toInt());
|
||||
break;
|
||||
default:
|
||||
CValueObject<CModulator<AVIO>>::setPropertyByIndex(variant, index);
|
||||
CValueObject<CModulator<AVIO>>::setPropertyByIndex(index, variant);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user