diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2019-01-10 23:47:15 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2019-01-10 23:47:15 +0100 |
commit | 9e6e6634defb00e7c8181073a3c9118816489a4a (patch) | |
tree | 1e040b6a57b9bde2572eefddf5406552ed2536be /src/vinylcontrol | |
parent | 1c0346517d810cd6d7aa0732494fec6614f4c141 (diff) | |
parent | 47561860c38ae96d99b40f7505059b7dc2f30d35 (diff) |
Merge remote-tracking branch 'upstream/master' into rate_ratio
Conflicts:
src/engine/controls/bpmcontrol.cpp
src/engine/controls/keycontrol.cpp
src/engine/sync/synccontrol.cpp
src/widget/wnumberrate.cpp
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r-- | src/vinylcontrol/vinylcontrol.cpp | 6 | ||||
-rw-r--r-- | src/vinylcontrol/vinylcontrolmanager.cpp | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/vinylcontrol/vinylcontrol.cpp b/src/vinylcontrol/vinylcontrol.cpp index 878bfab54f..bf8552e3cd 100644 --- a/src/vinylcontrol/vinylcontrol.cpp +++ b/src/vinylcontrol/vinylcontrol.cpp @@ -40,12 +40,6 @@ VinylControl::VinylControl(UserSettingsPointer pConfig, QString group) //Enabled or not -- load from saved value in case vinyl control is restarting m_bIsEnabled = wantenabled->get() > 0.0; - - // Load VC pre-amp gain from the config. - // TODO(rryan): Should probably live in VinylControlManager since it's not - // specific to a VC deck. - ControlObject::set(ConfigKey(VINYL_PREF_KEY, "gain"), - m_pConfig->getValueString(ConfigKey(VINYL_PREF_KEY,"gain")).toInt()); } bool VinylControl::isEnabled() { diff --git a/src/vinylcontrol/vinylcontrolmanager.cpp b/src/vinylcontrol/vinylcontrolmanager.cpp index b902e21a46..d438a510ef 100644 --- a/src/vinylcontrol/vinylcontrolmanager.cpp +++ b/src/vinylcontrol/vinylcontrolmanager.cpp @@ -55,7 +55,7 @@ VinylControlManager::~VinylControlManager() { void VinylControlManager::init() { m_pNumDecks = new ControlProxy("[Master]", "num_decks", this); - m_pNumDecks->connectValueChanged(SLOT(slotNumDecksChanged(double))); + m_pNumDecks->connectValueChanged(this, &VinylControlManager::slotNumDecksChanged); slotNumDecksChanged(m_pNumDecks->get()); } @@ -88,7 +88,7 @@ void VinylControlManager::slotNumDecksChanged(double dNumDecks) { QString group = PlayerManager::groupForDeck(i); ControlProxy* pEnabled = new ControlProxy(group, "vinylcontrol_enabled", this); m_pVcEnabled.push_back(pEnabled); - pEnabled->connectValueChanged(&m_vinylControlEnabledMapper, SLOT(map())); + pEnabled->connectValueChanged(&m_vinylControlEnabledMapper, QOverload<int>::of(&QSignalMapper::mapped)); m_vinylControlEnabledMapper.setMapping(pEnabled, i); // Default cueing should be off. |