mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refactor: Remove model preview
This feature was not documented and only worked for some MS flight simulators
This commit is contained in:
@@ -967,18 +967,6 @@ namespace swift::core::context
|
||||
}
|
||||
}
|
||||
|
||||
CPixmap CContextSimulator::iconForModel(const QString &modelString) const
|
||||
{
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return CPixmap(); }
|
||||
|
||||
// load from file
|
||||
CStatusMessage msg;
|
||||
const CAircraftModel model(this->getModelSet().findFirstByModelStringAliasOrDefault(modelString));
|
||||
const CPixmap pm(model.loadIcon(msg));
|
||||
if (!msg.isEmpty()) { CLogMessage::preformatted(msg); }
|
||||
return pm;
|
||||
}
|
||||
|
||||
CStatusMessageList CContextSimulator::getMatchingMessages(const CCallsign &callsign) const
|
||||
{
|
||||
if (isDebugEnabled()) { CLogMessage(this, CLogCategories::contextSlot()).debug() << Q_FUNC_INFO << callsign; }
|
||||
|
||||
Reference in New Issue
Block a user