diff options
author | Ferran Pujol Camins <ferranpujolcamins@gmail.com> | 2019-07-02 11:18:54 +0200 |
---|---|---|
committer | Ferran Pujol Camins <ferranpujolcamins@gmail.com> | 2019-07-02 11:18:54 +0200 |
commit | 04bbef2eb1e767deaba4997fb8ff5d45d4546476 (patch) | |
tree | fa953a14017ac996ff196454822d97771c13826b /src/vinylcontrol/vinylcontrolmanager.cpp | |
parent | 79f202439d4e9889366b145ac233d758330484a6 (diff) |
Use new signals & slots syntax
Diffstat (limited to 'src/vinylcontrol/vinylcontrolmanager.cpp')
-rw-r--r-- | src/vinylcontrol/vinylcontrolmanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vinylcontrol/vinylcontrolmanager.cpp b/src/vinylcontrol/vinylcontrolmanager.cpp index 96b30ee130..460a086d4b 100644 --- a/src/vinylcontrol/vinylcontrolmanager.cpp +++ b/src/vinylcontrol/vinylcontrolmanager.cpp @@ -24,7 +24,7 @@ VinylControlManager::VinylControlManager(QObject* pParent, m_pConfig(pConfig), m_pProcessor(new VinylControlProcessor(this, pConfig)), m_iTimerId(-1), - m_pNumDecks(NULL), + m_pNumDecks(nullptr), m_iNumConfiguredDecks(0) { // Register every possible VC input with SoundManager to route to the // VinylControlProcessor. @@ -33,8 +33,10 @@ VinylControlManager::VinylControlManager(QObject* pParent, AudioInput(AudioInput::VINYLCONTROL, 0, 2, i), m_pProcessor); } - connect(&m_vinylControlEnabledMapper, SIGNAL(mapped(int)), - this, SLOT(slotVinylControlEnabledChanged(int))); + connect(&m_vinylControlEnabledMapper, + qOverload<int>(&QSignalMapper::mapped), + this, + &VinylControlManager::slotVinylControlEnabledChanged); } VinylControlManager::~VinylControlManager() { |