mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#285) Disabled keyboard tracking for spin boxes
Disabled keyboard tracking for spin boxes used in slider editors, so that the valueChanged() signal is not emitted until the user has pressed ENTER or the spin box loses focus.
This commit is contained in:
@@ -117,6 +117,7 @@ QWidget* PdmUiSliderEditor::createEditorWidget(QWidget * parent)
|
||||
|
||||
m_spinBox = new QSpinBox(containerWidget);
|
||||
m_spinBox->setMaximumWidth(60);
|
||||
m_spinBox->setKeyboardTracking(false);
|
||||
connect(m_spinBox, SIGNAL(valueChanged(int)), this, SLOT(slotSpinBoxValueChanged(int)));
|
||||
|
||||
m_slider = new QSlider(Qt::Horizontal, containerWidget);
|
||||
|
Reference in New Issue
Block a user