diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 17:36:03 +0200 |
| commit | ef94aee28464039672b277243a0181ae93550d6c (patch) | |
| tree | 0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/pluginlistproxy.cpp | |
| parent | 7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff) | |
| parent | 3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff) | |
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/pluginlistproxy.cpp')
| -rw-r--r-- | src/pluginlistproxy.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/pluginlistproxy.cpp b/src/pluginlistproxy.cpp index 604aab3e..e5fa5e01 100644 --- a/src/pluginlistproxy.cpp +++ b/src/pluginlistproxy.cpp @@ -5,8 +5,9 @@ using namespace MOBase; using namespace MOShared; -PluginListProxy::PluginListProxy(OrganizerProxy* oproxy, PluginList* pluginlist) : - m_OrganizerProxy(oproxy), m_Proxied(pluginlist) { } +PluginListProxy::PluginListProxy(OrganizerProxy* oproxy, PluginList* pluginlist) + : m_OrganizerProxy(oproxy), m_Proxied(pluginlist) +{} PluginListProxy::~PluginListProxy() { @@ -15,9 +16,12 @@ PluginListProxy::~PluginListProxy() void PluginListProxy::connectSignals() { - m_Connections.push_back(m_Proxied->onRefreshed(callSignalIfPluginActive(m_OrganizerProxy, m_Refreshed))); - m_Connections.push_back(m_Proxied->onPluginMoved(callSignalIfPluginActive(m_OrganizerProxy, m_PluginMoved))); - m_Connections.push_back(m_Proxied->onPluginStateChanged(callSignalIfPluginActive(m_OrganizerProxy, m_PluginStateChanged))); + m_Connections.push_back( + m_Proxied->onRefreshed(callSignalIfPluginActive(m_OrganizerProxy, m_Refreshed))); + m_Connections.push_back(m_Proxied->onPluginMoved( + callSignalIfPluginActive(m_OrganizerProxy, m_PluginMoved))); + m_Connections.push_back(m_Proxied->onPluginStateChanged( + callSignalIfPluginActive(m_OrganizerProxy, m_PluginStateChanged))); } void PluginListProxy::disconnectSignals() @@ -83,12 +87,14 @@ bool PluginListProxy::onRefreshed(const std::function<void()>& func) return m_Refreshed.connect(func).connected(); } -bool PluginListProxy::onPluginMoved(const std::function<void(const QString&, int, int)>& func) +bool PluginListProxy::onPluginMoved( + const std::function<void(const QString&, int, int)>& func) { return m_PluginMoved.connect(func).connected(); } -bool PluginListProxy::onPluginStateChanged(const std::function<void(const std::map<QString, PluginStates>&)> &func) +bool PluginListProxy::onPluginStateChanged( + const std::function<void(const std::map<QString, PluginStates>&)>& func) { return m_PluginStateChanged.connect(func).connected(); } |
