diff options
author | Be <be@mixxx.org> | 2019-01-05 16:06:29 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2019-01-06 00:24:59 -0600 |
commit | 2ab7121f08fe12b628848720bb432af43aca0175 (patch) | |
tree | afc0d8c9a6cdfd5a352241229a94e38fe82cbe50 /src/widget/wwidgetstack.cpp | |
parent | f161b34ae71be5c24496c193bcbd8d296c60997e (diff) |
remove need for lambdas with connectValueChange(Request)
and remove old SLOT syntax for
ControlProxy::connectValueChangeRequest. That was easier than
getting it to play nice with the templating required for the
new functor syntax.
Diffstat (limited to 'src/widget/wwidgetstack.cpp')
-rw-r--r-- | src/widget/wwidgetstack.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widget/wwidgetstack.cpp b/src/widget/wwidgetstack.cpp index 9e6548f391..35f6d963a2 100644 --- a/src/widget/wwidgetstack.cpp +++ b/src/widget/wwidgetstack.cpp @@ -8,7 +8,7 @@ WidgetStackControlListener::WidgetStackControlListener(QObject* pParent, : QObject(pParent), m_control(pControl ? pControl->getKey() : ConfigKey(), this), m_index(index) { - m_control.connectValueChanged(SLOT(slotValueChanged(double))); + m_control.connectValueChanged(this, &WidgetStackControlListener::slotValueChanged); } void WidgetStackControlListener::slotValueChanged(double v) { @@ -34,10 +34,9 @@ WWidgetStack::WWidgetStack(QWidget* pParent, const ConfigKey& nextConfigKey, m_nextControl(nextConfigKey, this), m_prevControl(prevConfigKey, this), m_currentPageControl(currentPageConfigKey, this) { - m_nextControl.connectValueChanged(SLOT(onNextControlChanged(double))); - m_prevControl.connectValueChanged(SLOT(onPrevControlChanged(double))); - m_currentPageControl.connectValueChanged( - SLOT(onCurrentPageControlChanged(double))); + m_nextControl.connectValueChanged(this, &WWidgetStack::onNextControlChanged); + m_prevControl.connectValueChanged(this, &WWidgetStack::onPrevControlChanged); + m_currentPageControl.connectValueChanged(this, &WWidgetStack::onCurrentPageControlChanged); connect(&m_showMapper, SIGNAL(mapped(int)), this, SLOT(showIndex(int))); connect(&m_hideMapper, SIGNAL(mapped(int)), |