mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
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:
committed by
Mathew Sutcliffe
parent
b5c3a5543f
commit
bb61654a29
@@ -317,8 +317,8 @@ namespace BlackMisc
|
||||
return QVariant(this->m_callsign.getStringAsSet());
|
||||
case IndexController:
|
||||
return this->m_controller.toQVariant();
|
||||
case IndexControllerRealname:
|
||||
return QVariant(this->getControllerRealname());
|
||||
case IndexControllerRealName:
|
||||
return QVariant(this->getControllerRealName());
|
||||
case IndexControllerId:
|
||||
return QVariant(this->getControllerId());
|
||||
case IndexFrequency:
|
||||
@@ -374,8 +374,8 @@ namespace BlackMisc
|
||||
case IndexController:
|
||||
this->setController(variant.value<CUser>());
|
||||
break;
|
||||
case IndexControllerRealname:
|
||||
this->setControllerRealname(variant.value<QString>());
|
||||
case IndexControllerRealName:
|
||||
this->setControllerRealName(variant.value<QString>());
|
||||
break;
|
||||
case IndexControllerId:
|
||||
this->setControllerId(variant.value<QString>());
|
||||
@@ -437,9 +437,9 @@ namespace BlackMisc
|
||||
{
|
||||
case IndexFrequency:
|
||||
if (!CComSystem::isValidCivilAviationFrequency(qv.value<CFrequency>()))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
return qv.value<CFrequency>().valueRoundedWithUnit(3, i18n);
|
||||
break;
|
||||
case IndexDistance:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user