mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 14:07:35 +08:00
Formatting, #825 (matching)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
eabb576b67
commit
35c685b344
@@ -116,7 +116,7 @@ namespace BlackMisc
|
||||
int score = 0;
|
||||
if (this->hasValidDesignator() && this->getDesignator() == otherCode.getDesignator())
|
||||
{
|
||||
score += 50;
|
||||
score += 50; // same designator
|
||||
|
||||
if (this->getRank() == 0) { score += 15; }
|
||||
else if (this->getRank() == 1) { score += 12; }
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace BlackMisc
|
||||
//! As a brief HTML summary (e.g. used in tooltips)
|
||||
QString asHtmlSummary() const;
|
||||
|
||||
//! Considers rank, manufacturer and family 0..90
|
||||
//! Considers rank, manufacturer and family 0..100
|
||||
//! \remark normally used with a selected set of ICAO codes or combined types
|
||||
int calculateScore(const CAircraftIcaoCode &otherCode) const;
|
||||
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace BlackMisc
|
||||
if (score == 0) { return 0; }
|
||||
if (this->isAirlineStandardLivery() && !preferColorLiveries) { score += 10; }
|
||||
|
||||
// overrate non airline liveries
|
||||
// overrate non airline liveries / color liveries
|
||||
if (preferColorLiveries)
|
||||
{
|
||||
if (this->isColorLivery() || !this->hasValidAirlineDesignator())
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace BlackMisc
|
||||
|
||||
QString CAircraftModel::asHtmlSummary(const QString &separator) const
|
||||
{
|
||||
const QString html = "Model: %1%2Aircraft ICAO: %3%4Livery: %5";
|
||||
static const QString html = "Model: %1%2Aircraft ICAO: %3%4Livery: %5";
|
||||
return html.arg(this->getModelStringAndDbKey(), separator,
|
||||
this->getAircraftIcaoCode().asHtmlSummary(), separator,
|
||||
this->getLivery().asHtmlSummary());
|
||||
|
||||
Reference in New Issue
Block a user