Ref T335, misc. improvements of value classes/list

- verifyModelData
- setModelType
- getCallsignsAsString
This commit is contained in:
Klaus Basan
2018-09-12 16:18:56 +02:00
parent 7d715a909e
commit c675ef5c32
8 changed files with 61 additions and 4 deletions

View File

@@ -117,6 +117,13 @@ namespace BlackMisc
return m_enabled;
}
bool CSimulatedAircraft::setEnabled(bool enabled)
{
if (m_enabled == enabled) { return false; }
m_enabled = enabled;
return true;
}
bool CSimulatedAircraft::setFastPositionUpdates(bool useFastPositions)
{
if (m_fastPositionUpdates == useFastPositions) { return false; }
@@ -494,7 +501,10 @@ namespace BlackMisc
const CLivery livery(this->getModel().getLivery());
const CLivery liveryNw(this->getNetworkModel().getLivery());
if (livery.isDbEqual(liveryNw) || livery == liveryNw) { return QStringLiteral("[=] ") + livery.getCombinedCodePlusInfo(); }
if (livery.isDbEqual(liveryNw) || livery == liveryNw) { return QStringLiteral("[==] ") + livery.getCombinedCodePlusInfo(); }
if (livery.getCombinedCode() == liveryNw.getCombinedCode()) { return QStringLiteral("[=] ") + livery.getCombinedCodePlusInfo(); }
if (livery.isAirlineLivery() && liveryNw.isAirlineLivery()) { return this->getNetworkModelAirlineIcaoDifference(); }
static const QString diff("%1 -> %2");
return diff.arg(liveryNw.getCombinedCodePlusInfo(), livery.getCombinedCodePlusInfo());
}