summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchainslot.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-07 16:48:21 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-09 00:35:23 +0100
commit83ed067e0c1d6d1e70545ec314af43e5e2b2b8cc (patch)
tree4945f0b920562f28dd6489493fc96677aa06b43a /src/effects/effectchainslot.cpp
parentd2054142ba98a364f38f8cb249480a3546f98171 (diff)
effects/effectchainslot: Replace QSignalMapper with lambda expressions
Diffstat (limited to 'src/effects/effectchainslot.cpp')
-rw-r--r--src/effects/effectchainslot.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp
index da4396fb6d..cdea996268 100644
--- a/src/effects/effectchainslot.cpp
+++ b/src/effects/effectchainslot.cpp
@@ -68,9 +68,6 @@ EffectChainSlot::EffectChainSlot(EffectRack* pRack, const QString& group,
connect(m_pControlChainSelector, SIGNAL(valueChanged(double)),
this, SLOT(slotControlChainSelector(double)));
- connect(&m_channelStatusMapper, SIGNAL(mapped(const QString&)),
- this, SLOT(slotChannelStatusChanged(const QString&)));
-
// ControlObjects for skin <-> controller mapping interaction.
// Refer to comment in header for full explanation.
m_pControlChainShowFocus = new ControlPushButton(
@@ -330,9 +327,9 @@ void EffectChainSlot::registerInputChannel(const ChannelHandleAndGroup& handle_g
ChannelInfo* pInfo = new ChannelInfo(handle_group, pEnableControl);
m_channelInfoByName[handle_group.name()] = pInfo;
- m_channelStatusMapper.setMapping(pEnableControl, handle_group.name());
- connect(pEnableControl, SIGNAL(valueChanged(double)),
- &m_channelStatusMapper, SLOT(map()));
+ connect(pEnableControl, &ControlPushButton::valueChanged,
+ [this, handle_group] { slotChannelStatusChanged(handle_group.name()); });
+
}
void EffectChainSlot::slotEffectLoaded(EffectPointer pEffect, unsigned int slotNumber) {