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