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