mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Formatting, comments
This commit is contained in:
@@ -383,8 +383,9 @@ namespace BlackGui
|
|||||||
CIdentifier CMappingComponent::mappingIdentifier()
|
CIdentifier CMappingComponent::mappingIdentifier()
|
||||||
{
|
{
|
||||||
if (m_identifier.getName().isEmpty())
|
if (m_identifier.getName().isEmpty())
|
||||||
|
{
|
||||||
m_identifier = CIdentifier(QStringLiteral("MAPPINGCOMPONENT"));
|
m_identifier = CIdentifier(QStringLiteral("MAPPINGCOMPONENT"));
|
||||||
|
}
|
||||||
return m_identifier;
|
return m_identifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,16 +123,21 @@ namespace BlackGui
|
|||||||
void ps_onMenuHighlightInSimulator(const BlackMisc::Simulation::CSimulatedAircraft &aircraft);
|
void ps_onMenuHighlightInSimulator(const BlackMisc::Simulation::CSimulatedAircraft &aircraft);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
//! Identifier for data send from this component
|
||||||
BlackMisc::CIdentifier mappingIdentifier();
|
BlackMisc::CIdentifier mappingIdentifier();
|
||||||
|
|
||||||
|
//! Update simulated aircraft view
|
||||||
void updateSimulatedAircraftView(bool forceUpdate = false);
|
void updateSimulatedAircraftView(bool forceUpdate = false);
|
||||||
|
|
||||||
QScopedPointer<Ui::CMappingComponent> ui;
|
QScopedPointer<Ui::CMappingComponent> ui;
|
||||||
QScopedPointer<CUpdateTimer> m_updateTimer;
|
QScopedPointer<CUpdateTimer> m_updateTimer;
|
||||||
QCompleter *m_modelCompleter = nullptr;
|
QCompleter *m_modelCompleter = nullptr;
|
||||||
bool m_missedSimulatedAircraftUpdate = true;
|
bool m_missedSimulatedAircraftUpdate = true;
|
||||||
BlackGui::Views::CCheckBoxDelegate *m_currentMappingsViewDelegate = nullptr;
|
BlackGui::Views::CCheckBoxDelegate *m_currentMappingsViewDelegate = nullptr;
|
||||||
BlackMisc::CIdentifier m_identifier;
|
BlackMisc::CIdentifier m_identifier;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
//! Updated by timer
|
||||||
void ps_backgroundUpdate();
|
void ps_backgroundUpdate();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
if (!filter)
|
if (!filter)
|
||||||
{
|
{
|
||||||
this->removeFilter(); // empty filter
|
this->removeFilter(); // clear filter
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (filter->isValid())
|
if (filter->isValid())
|
||||||
@@ -384,6 +384,7 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// invalid filter, so clear filter
|
||||||
this->removeFilter();
|
this->removeFilter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user