refs #828, added function to generate HTML file with matrix

* added utility functions
* adjusted existing functions
This commit is contained in:
Klaus Basan
2016-12-09 03:30:02 +01:00
parent 8488909a44
commit 7b11b1fb54
6 changed files with 183 additions and 5 deletions

View File

@@ -132,10 +132,12 @@ namespace BlackMisc
});
}
QString CAircraftModel::asHtmlSummary() const
QString CAircraftModel::asHtmlSummary(const QString &separator) const
{
const QString html = "Model: %1<br>Aircraft ICAO: %2<br>Livery: %3";
return html.arg(this->getModelStringAndDbKey(), this->getAircraftIcaoCode().asHtmlSummary(), this->getLivery().asHtmlSummary());
const QString html = "Model: %1%2Aircraft ICAO: %3%4Livery: %5";
return html.arg(this->getModelStringAndDbKey(), separator,
this->getAircraftIcaoCode().asHtmlSummary(), separator,
this->getLivery().asHtmlSummary());
}
bool CAircraftModel::canInitializeFromFsd() const