diff options
author | Be <be@mixxx.org> | 2018-02-24 16:24:04 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2018-03-01 17:51:25 -0600 |
commit | 6cd8cd67c741fd8a90a84736b5e0cc797f847b71 (patch) | |
tree | bb2276a280b65bf39e57d6d9ab50b32034cd74a1 | |
parent | 1ce75a663afaf740f39e70e25ced80c2f0fa96c7 (diff) |
fix constructors of WEffectSelector and WBeatSpinBox
The improper construction of the parent WBaseWidget class was causing
some strange issues. Sizes specified by the skin were ignored for
WEffectSelector and neither widget had the correct tooltip in developer
mode.
-rw-r--r-- | src/widget/wbeatspinbox.cpp | 3 | ||||
-rw-r--r-- | src/widget/weffectselector.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/widget/wbeatspinbox.cpp b/src/widget/wbeatspinbox.cpp index 1fcbdccf43..43a6d89ce1 100644 --- a/src/widget/wbeatspinbox.cpp +++ b/src/widget/wbeatspinbox.cpp @@ -10,7 +10,8 @@ QRegExp WBeatSpinBox::s_regexpBlacklist("[^0-9.,/ ]"); WBeatSpinBox::WBeatSpinBox(QWidget * parent, ControlObject* pValueControl, int decimals, double minimum, double maximum) - : WBaseWidget(parent), + : QDoubleSpinBox(parent), + WBaseWidget(this), m_valueControl( pValueControl ? pValueControl->getKey() : ConfigKey(), this diff --git a/src/widget/weffectselector.cpp b/src/widget/weffectselector.cpp index 71281cffc9..5c926f13b1 100644 --- a/src/widget/weffectselector.cpp +++ b/src/widget/weffectselector.cpp @@ -7,7 +7,7 @@ WEffectSelector::WEffectSelector(QWidget* pParent, EffectsManager* pEffectsManager) : QComboBox(pParent), - WBaseWidget(pParent), + WBaseWidget(this), m_pEffectsManager(pEffectsManager), m_scaleFactor(1.0) { // Prevent this widget from getting focused to avoid |