diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2018-06-03 00:33:22 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2018-06-03 00:33:22 +0200 |
commit | 66ac8ad4f7635fae8a518d553a2d1679765880ed (patch) | |
tree | 027dedc59c94876b4f1bea04a0e3ccbd7bd43f6d /src/widget/wbeatspinbox.cpp | |
parent | bc5077f8db515968c3173707373ae2436fdaab1f (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.cpp | 7 |
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)); |