summaryrefslogtreecommitdiffstats
path: root/src/widget/wbeatspinbox.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2018-06-03 00:33:22 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2018-06-03 00:33:22 +0200
commit66ac8ad4f7635fae8a518d553a2d1679765880ed (patch)
tree027dedc59c94876b4f1bea04a0e3ccbd7bd43f6d /src/widget/wbeatspinbox.cpp
parentbc5077f8db515968c3173707373ae2436fdaab1f (diff)
Pass ConfigKey instead of plain CO pointer in some widget constructors. This helps to track the ownership of the CO.
Diffstat (limited to 'src/widget/wbeatspinbox.cpp')
-rw-r--r--src/widget/wbeatspinbox.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widget/wbeatspinbox.cpp b/src/widget/wbeatspinbox.cpp
index 43a6d89ce1..90d213cee7 100644
--- a/src/widget/wbeatspinbox.cpp
+++ b/src/widget/wbeatspinbox.cpp
@@ -8,14 +8,11 @@
QRegExp WBeatSpinBox::s_regexpBlacklist("[^0-9.,/ ]");
-WBeatSpinBox::WBeatSpinBox(QWidget * parent, ControlObject* pValueControl,
+WBeatSpinBox::WBeatSpinBox(QWidget* parent, const ConfigKey& configKey,
int decimals, double minimum, double maximum)
: QDoubleSpinBox(parent),
WBaseWidget(this),
- m_valueControl(
- pValueControl ?
- pValueControl->getKey() : ConfigKey(), this
- ),
+ m_valueControl(configKey, this),
m_scaleFactor(1.0) {
// replace the original QLineEdit by one that supports font scaling.
setLineEdit(new WBeatLineEdit(this));