mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
refs #768, allow more detailed tooltips
(makes it sometimes much easier to identify an entity)
This commit is contained in:
@@ -103,6 +103,11 @@ namespace BlackMisc
|
||||
return msg;
|
||||
}
|
||||
|
||||
QString CAircraftIcaoCode::asHtmlSummary() const
|
||||
{
|
||||
return this->getCombinedIcaoStringWithKey();
|
||||
}
|
||||
|
||||
bool CAircraftIcaoCode::hasDesignator() const
|
||||
{
|
||||
return !this->m_designator.isEmpty();
|
||||
|
||||
@@ -246,6 +246,9 @@ namespace BlackMisc
|
||||
//! Validate data
|
||||
BlackMisc::CStatusMessageList validate() const;
|
||||
|
||||
//! As a brief HTML summary (e.g. used in tooltips)
|
||||
QString asHtmlSummary () const;
|
||||
|
||||
//! Valid designator?
|
||||
static bool isValidDesignator(const QString &designator);
|
||||
|
||||
|
||||
@@ -385,6 +385,11 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
QString CAirlineIcaoCode::asHtmlSummary() const
|
||||
{
|
||||
return this->getCombinedStringWithKey();
|
||||
}
|
||||
|
||||
CAirlineIcaoCode CAirlineIcaoCode::fromDatabaseJson(const QJsonObject &json, const QString &prefix)
|
||||
{
|
||||
if (!existsKey(json, prefix))
|
||||
|
||||
@@ -194,6 +194,9 @@ namespace BlackMisc
|
||||
//! Update missing parts
|
||||
void updateMissingParts(const CAirlineIcaoCode &otherIcaoCode);
|
||||
|
||||
//! As a brief HTML summary (e.g. used in tooltips)
|
||||
QString asHtmlSummary () const;
|
||||
|
||||
//! Valid designator?
|
||||
static bool isValidAirlineDesignator(const QString &airline);
|
||||
|
||||
|
||||
@@ -377,5 +377,10 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
QString CLivery::asHtmlSummary() const
|
||||
{
|
||||
return this->getCombinedCodePlusInfo();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -164,6 +164,9 @@ namespace BlackMisc
|
||||
//! Update missing parts
|
||||
void updateMissingParts(const CLivery &otherLivery);
|
||||
|
||||
//! As a brief HTML summary (e.g. used in tooltips)
|
||||
QString asHtmlSummary () const;
|
||||
|
||||
//! Object from JSON
|
||||
static CLivery fromDatabaseJson(const QJsonObject &json, const QString &prefix = QString("liv_"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user