mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-28 02:43:49 -06:00
qt: connect IntRangeEditor spinbox to slider
This commit is contained in:
parent
59806ae2ff
commit
4731f538b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user