style and consistency:

* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
This commit is contained in:
Klaus Basan
2014-01-07 23:00:39 +00:00
committed by Mathew Sutcliffe
parent b5c3a5543f
commit bb61654a29
80 changed files with 846 additions and 753 deletions

View File

@@ -156,8 +156,8 @@ namespace BlackMisc
return QVariant(this->m_callsign.getStringAsSet());
case IndexPilotId:
return QVariant::fromValue(this->m_pilot.getId());
case IndexPilotRealname:
return QVariant::fromValue(this->m_pilot.getRealname());
case IndexPilotRealName:
return QVariant::fromValue(this->m_pilot.getRealName());
case IndexDistance:
return this->m_distanceToPlane.toQVariant();
case IndexCom1System:
@@ -194,9 +194,9 @@ namespace BlackMisc
{
case IndexFrequencyCom1:
if (!CComSystem::isValidCivilAviationFrequency(qv.value<CFrequency>()))
{
return "";
}
else
return qv.value<CFrequency>().valueRoundedWithUnit(3, i18n);
break;
case IndexDistance:
{
@@ -229,8 +229,11 @@ namespace BlackMisc
case IndexCallsignAsString:
this->m_callsign = CCallsign(variant.value<QString>());
break;
case IndexPilotRealname:
this->m_pilot.setRealname(variant.value<QString>());
case IndexPilotRealName:
this->m_pilot.setRealName(variant.value<QString>());
break;
case IndexDistance:
this->m_distanceToPlane = variant.value<CLength>();
break;
case IndexCom1System:
this->setCom1System(variant.value<CComSystem>());