qt: connect IntRangeEditor spinbox to slider

This commit is contained in:
jussi 2019-11-11 18:17:19 +02:00
parent 59806ae2ff
commit 4731f538b8

View File

@ -13,6 +13,8 @@ IntRangeEditor::IntRangeEditor(QWidget *parent) : AbstractAssignableEditor(paren
m_mainLayout->addWidget(m_spinBox);
connect(m_slider, &QSlider::valueChanged, m_spinBox, &QSpinBox::setValue);
connect(m_spinBox, QOverload<int>::of(&QSpinBox::valueChanged), m_slider, &QSlider::setValue);
connect(m_slider, &QSlider::rangeChanged, m_spinBox, &QSpinBox::setRange);
// No range specified at this point, so disable them