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/wnumberrate.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/wnumberrate.cpp')
-rw-r--r-- | src/widget/wnumberrate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widget/wnumberrate.cpp b/src/widget/wnumberrate.cpp index 34a65d159c..84dd888c34 100644 --- a/src/widget/wnumberrate.cpp +++ b/src/widget/wnumberrate.cpp @@ -19,11 +19,11 @@ WNumberRate::WNumberRate(const char * group, QWidget * parent) : WNumber(parent) { m_pRateRangeControl = new ControlProxy(group, "rateRange", this); - m_pRateRangeControl->connectValueChanged(SLOT(setValue(double))); + m_pRateRangeControl->connectValueChanged(this, &WNumberRate::setValue); m_pRateDirControl = new ControlProxy(group, "rate_dir", this); - m_pRateDirControl->connectValueChanged(SLOT(setValue(double))); + m_pRateDirControl->connectValueChanged(this, &WNumberRate::setValue); m_pRateControl = new ControlProxy(group, "rate", this); - m_pRateControl->connectValueChanged(SLOT(setValue(double))); + m_pRateControl->connectValueChanged(this, &WNumberRate::setValue); // Initialize the widget. setValue(0); } |