mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #655, Change signature (order) of setProperty/compareProperty
This commit is contained in:
committed by
Roland Winklmeier
parent
49094115b1
commit
0f5d2a29a8
@@ -64,10 +64,10 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
void CVPilotModelRule::setPropertyByIndex(const CVariant &variant, const CPropertyIndex &index)
|
||||
void CVPilotModelRule::setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant)
|
||||
{
|
||||
if (index.isMyself()) { (*this) = variant.to<CVPilotModelRule>(); return; }
|
||||
if (ITimestampBased::canHandleIndex(index)) { ITimestampBased::setPropertyByIndex(variant, index); return; }
|
||||
if (ITimestampBased::canHandleIndex(index)) { ITimestampBased::setPropertyByIndex(index, variant); return; }
|
||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ namespace BlackMisc
|
||||
case IndexTypeCode: this->setTypeCode(variant.value<QString>()); break;
|
||||
case IndexCallsignPrefix: this->setCallsignPrefix(variant.value<QString>()); break;
|
||||
default:
|
||||
CValueObject::setPropertyByIndex(variant, index);
|
||||
CValueObject::setPropertyByIndex(index, variant);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user