summaryrefslogtreecommitdiffstats
path: root/src/widget/wnumber.cpp
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-01-09 15:18:34 -0500
committerRJ Ryan <rryan@mixxx.org>2014-01-10 13:25:53 -0500
commit0a4d97b7cafb9ca92798f3b53165359f5055c220 (patch)
treecd4ec52d58f4d369d994fd0b8eaeb7e499377c2a /src/widget/wnumber.cpp
parentd5f838d156504c12496dc05ee42bcda8c4349b61 (diff)
Expose widget connections directly to WBaseWidget rather than using Qt signals.
This paves the way for getting rid of widget values and adding the concept of a display value vs. a left/right connected widget value. An added benefit is that ControlObjectThreadWidget is now nothing more than a parameter-space translator on top of ControlObjectThreadMain.
Diffstat (limited to 'src/widget/wnumber.cpp')
-rw-r--r--src/widget/wnumber.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widget/wnumber.cpp b/src/widget/wnumber.cpp
index a3a862ab5b..45c4f34c02 100644
--- a/src/widget/wnumber.cpp
+++ b/src/widget/wnumber.cpp
@@ -47,6 +47,10 @@ void WNumber::setup(QDomNode node, const SkinContext& context) {
setValue(0.);
}
+void WNumber::onConnectedControlValueChanged(double v) {
+ setValue(v);
+}
+
void WNumber::setValue(double dValue) {
double v = dValue + m_dConstFactor;
int d1 = (int)floor((v-floor(v))*10.);