diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-11-13 07:39:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 07:39:47 +0100 |
commit | b5ed39ddf1d49b9c92a055fe93e1ef1844a4b3e5 (patch) | |
tree | 750aaaeca0a0672ee40b5e55de2db7632000347f /src/effects | |
parent | 941a31935864f7e2379cea7ede8df97bd793bba7 (diff) | |
parent | bfbeeb4c3d9a006ceb6819849801cdf5a7f2d689 (diff) |
Merge pull request #3294 from Holzhaus/clazy-old-style-connect
Get rid of some old-style Qt connect() calls
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/effectbuttonparameterslot.cpp | 12 | ||||
-rw-r--r-- | src/effects/effectrack.cpp | 3 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/effects/effectbuttonparameterslot.cpp b/src/effects/effectbuttonparameterslot.cpp index cbbf8463d8..bd74ca82e9 100644 --- a/src/effects/effectbuttonparameterslot.cpp +++ b/src/effects/effectbuttonparameterslot.cpp @@ -21,8 +21,10 @@ EffectButtonParameterSlot::EffectButtonParameterSlot(const QString& group, m_pControlType = new ControlObject( ConfigKey(m_group, itemPrefix + QString("_type"))); - connect(m_pControlValue, SIGNAL(valueChanged(double)), - this, SLOT(slotValueChanged(double))); + connect(m_pControlValue, + &ControlObject::valueChanged, + this, + &EffectButtonParameterSlot::slotValueChanged); // Read-only controls. m_pControlType->setReadOnly(); @@ -78,8 +80,10 @@ void EffectButtonParameterSlot::loadEffect(EffectPointer pEffect) { // Default loaded parameters to loaded and unlinked m_pControlLoaded->forceSet(1.0); - connect(m_pEffectParameter, SIGNAL(valueChanged(double)), - this, SLOT(slotParameterValueChanged(double))); + connect(m_pEffectParameter, + &EffectParameter::valueChanged, + this, + &EffectButtonParameterSlot::slotParameterValueChanged); } } emit updated(); diff --git a/src/effects/effectrack.cpp b/src/effects/effectrack.cpp index 0ce72b950a..16d6db9e4f 100644 --- a/src/effects/effectrack.cpp +++ b/src/effects/effectrack.cpp @@ -19,8 +19,7 @@ EffectRack::EffectRack(EffectsManager* pEffectsManager, m_group(group), m_controlNumEffectChainSlots(ConfigKey(m_group, "num_effectunits")), m_controlClearRack(ConfigKey(m_group, "clear")) { - connect(&m_controlClearRack, SIGNAL(valueChanged(double)), - this, SLOT(slotClearRack(double))); + connect(&m_controlClearRack, &ControlObject::valueChanged, this, &EffectRack::slotClearRack); m_controlNumEffectChainSlots.setReadOnly(); addToEngine(); } |