diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2013-07-12 14:19:03 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2013-07-12 14:19:03 +0200 |
commit | b1dabc60c2427af08990810b19ecc2dc61999df5 (patch) | |
tree | 1eb1759d5f3affc84f73bd001907e5ace0469aff /src/widget/wnumberrate.cpp | |
parent | 8fd9cd1f5010fa4a9b224562c06ee6988541183e (diff) |
Finaly Changed remaining ControlObjectThreadMain instances to
ControlObjectThread where no direct connection is used.
Diffstat (limited to 'src/widget/wnumberrate.cpp')
-rw-r--r-- | src/widget/wnumberrate.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widget/wnumberrate.cpp b/src/widget/wnumberrate.cpp index f5e7a4eaed..ef8370dca4 100644 --- a/src/widget/wnumberrate.cpp +++ b/src/widget/wnumberrate.cpp @@ -14,31 +14,31 @@ #include "controlobject.h" #include "controlobjectthreadmain.h" -WNumberRate::WNumberRate(const char * group, QWidget * parent) : WNumber(parent) -{ - m_pRateRangeControl = new ControlObjectThreadMain(group, "rateRange"); +WNumberRate::WNumberRate(const char * group, QWidget * parent) + : WNumber(parent) { + m_pRateRangeControl = new ControlObjectThread(group, "rateRange"); connect(m_pRateRangeControl, SIGNAL(valueChanged(double)), this, SLOT(setValue(double))); - m_pRateDirControl = new ControlObjectThreadMain(group, "rate_dir"); + m_pRateDirControl = new ControlObjectThread(group, "rate_dir"); connect(m_pRateDirControl, SIGNAL(valueChanged(double)), this, SLOT(setValue(double))); - m_pRateControl = new ControlObjectThreadMain(group, "rate"); + m_pRateControl = new ControlObjectThread(group, "rate"); connect(m_pRateControl, SIGNAL(valueChanged(double)), this, SLOT(setValue(double))); // Initialize the widget. setValue(0); } -WNumberRate::~WNumberRate() -{ +WNumberRate::~WNumberRate() { delete m_pRateControl; delete m_pRateDirControl; delete m_pRateRangeControl; } -void WNumberRate::setValue(double) -{ - double vsign = m_pRateControl->get()*m_pRateRangeControl->get()*m_pRateDirControl->get(); +void WNumberRate::setValue(double) { + double vsign = m_pRateControl->get() * + m_pRateRangeControl->get() * + m_pRateDirControl->get(); char sign = '+'; if (vsign < -0.00000001) { |