refs #768, allow more detailed tooltips

(makes it sometimes much easier to identify an entity)
This commit is contained in:
Klaus Basan
2016-10-23 18:28:45 +02:00
parent 847348cbe0
commit ff3f04f74c
8 changed files with 33 additions and 0 deletions

View File

@@ -105,6 +105,12 @@ namespace BlackMisc
return QJsonDocument(this->toDatabaseJson()).toJson(format);
}
QString CAircraftModel::asHtmlSummary() const
{
const QString html = "Model: %1<br>Aircraft ICAO: %2<br>Livery: %3";
return html.arg(this->getModelStringAndDbKey(), this->getAircraftIcaoCode().asHtmlSummary(), this->getLivery().asHtmlSummary());
}
bool CAircraftModel::canInitializeFromFsd() const
{
const bool nw = this->getModelType() == CAircraftModel::TypeQueriedFromNetwork ||