diff options
Diffstat (limited to 'src/widget/wwidgetstack.cpp')
-rw-r--r-- | src/widget/wwidgetstack.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widget/wwidgetstack.cpp b/src/widget/wwidgetstack.cpp index 9e6548f391..35f6d963a2 100644 --- a/src/widget/wwidgetstack.cpp +++ b/src/widget/wwidgetstack.cpp @@ -8,7 +8,7 @@ WidgetStackControlListener::WidgetStackControlListener(QObject* pParent, : QObject(pParent), m_control(pControl ? pControl->getKey() : ConfigKey(), this), m_index(index) { - m_control.connectValueChanged(SLOT(slotValueChanged(double))); + m_control.connectValueChanged(this, &WidgetStackControlListener::slotValueChanged); } void WidgetStackControlListener::slotValueChanged(double v) { @@ -34,10 +34,9 @@ WWidgetStack::WWidgetStack(QWidget* pParent, const ConfigKey& nextConfigKey, m_nextControl(nextConfigKey, this), m_prevControl(prevConfigKey, this), m_currentPageControl(currentPageConfigKey, this) { - m_nextControl.connectValueChanged(SLOT(onNextControlChanged(double))); - m_prevControl.connectValueChanged(SLOT(onPrevControlChanged(double))); - m_currentPageControl.connectValueChanged( - SLOT(onCurrentPageControlChanged(double))); + m_nextControl.connectValueChanged(this, &WWidgetStack::onNextControlChanged); + m_prevControl.connectValueChanged(this, &WWidgetStack::onPrevControlChanged); + m_currentPageControl.connectValueChanged(this, &WWidgetStack::onCurrentPageControlChanged); connect(&m_showMapper, SIGNAL(mapped(int)), this, SLOT(showIndex(int))); connect(&m_hideMapper, SIGNAL(mapped(int)), |