mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #393, allow to highlight a certain aircraft by blinking
* signatures in contexts * some specialized functions in aircraft list * context menus in aircraft view * default "blinking" implementation in driver common base class
This commit is contained in:
@@ -75,6 +75,7 @@ namespace BlackCore
|
||||
if (this->m_partsByCallsign.contains(callsign))
|
||||
{
|
||||
partsStatus.supportsParts = true;
|
||||
if (cutoffTime < 0) { return this->m_partsByCallsign[callsign]; }
|
||||
return this->m_partsByCallsign[callsign].findBeforeAndRemove(cutoffTime);
|
||||
}
|
||||
else
|
||||
@@ -93,6 +94,16 @@ namespace BlackCore
|
||||
m_partsByCallsign.clear();
|
||||
}
|
||||
|
||||
bool IInterpolator::hasDataForCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
if (callsign.isEmpty()) { return false; }
|
||||
QReadLocker s(&m_lockSituations);
|
||||
if (m_situationsByCallsign.contains(callsign)) { return true; }
|
||||
|
||||
QReadLocker p(&m_lockParts);
|
||||
return m_partsByCallsign.contains(callsign);
|
||||
}
|
||||
|
||||
CAircraftSituationList IInterpolator::getSituationsForCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
QReadLocker l(&m_lockSituations);
|
||||
|
||||
Reference in New Issue
Block a user