mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ff0c37ff58
commit
cb024b0245
@@ -41,7 +41,6 @@ namespace BlackGui
|
||||
class CUserComponent;
|
||||
class CWeatherComponent;
|
||||
|
||||
|
||||
//! Main info area of pilot client
|
||||
class BLACKGUI_EXPORT CMainInfoAreaComponent : public BlackGui::CInfoArea
|
||||
{
|
||||
|
||||
@@ -298,13 +298,13 @@ namespace BlackGui
|
||||
void CSettingsSimulatorComponent::ps_showPluginConfig(const QString &identifier)
|
||||
{
|
||||
CSimulatorPluginInfoList simDrivers(getAvailablePlugins());
|
||||
auto selected = std::find_if(simDrivers.begin(), simDrivers.end(),
|
||||
[&identifier](const CSimulatorPluginInfo & info)
|
||||
const auto selected = std::find_if(simDrivers.begin(), simDrivers.end(),
|
||||
[&identifier](const CSimulatorPluginInfo & info)
|
||||
{
|
||||
return info.getIdentifier() == identifier;
|
||||
});
|
||||
|
||||
QString configId = m_plugins->getPluginConfigId(selected->getIdentifier());
|
||||
const QString configId = m_plugins->getPluginConfigId(selected->getIdentifier());
|
||||
IPluginConfig *config = m_plugins->getPluginById<IPluginConfig>(configId);
|
||||
if (!config)
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackGui
|
||||
explicit CSettingsSimulatorComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CSettingsSimulatorComponent();
|
||||
virtual ~CSettingsSimulatorComponent();
|
||||
|
||||
private slots:
|
||||
//! Driver plugin enabled/disabled
|
||||
@@ -87,7 +87,6 @@ namespace BlackGui
|
||||
bool m_pluginLoaded = false; //!< plugin loaded
|
||||
BlackCore::CPluginManagerSimulator* m_plugins = nullptr;
|
||||
BlackMisc::CSetting<BlackCore::Application::TEnabledSimulators> m_enabledSimulators { this, &CSettingsSimulatorComponent::ps_reloadPluginConfig };
|
||||
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user