From 7b1cc368800c641946c7bc16b8a75a5d22db83ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Szab=C3=B3?= Date: Mon, 27 Dec 2021 03:11:08 +0100 Subject: [PATCH] Fix spinbox offsets in MIDI tab of instruments (#6235) --- src/gui/widgets/InstrumentMidiIOView.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gui/widgets/InstrumentMidiIOView.cpp b/src/gui/widgets/InstrumentMidiIOView.cpp index 8c511f95a..724f835f0 100644 --- a/src/gui/widgets/InstrumentMidiIOView.cpp +++ b/src/gui/widgets/InstrumentMidiIOView.cpp @@ -64,8 +64,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiInputLayout->addWidget( m_inputChannelSpinBox ); m_fixedInputVelocitySpinBox = new LcdSpinBox( 3, m_midiInputGroupBox ); - m_fixedInputVelocitySpinBox->setDisplayOffset( 1 ); - m_fixedInputVelocitySpinBox->addTextForValue( 0, "---" ); + m_fixedInputVelocitySpinBox->addTextForValue( -1, "---" ); /*: This string must be be short, its width must be less than * width of LCD spin-box of three digits */ m_fixedInputVelocitySpinBox->setLabel( tr( "VELOC" ) ); @@ -95,8 +94,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiOutputLayout->addWidget( m_outputChannelSpinBox ); m_fixedOutputVelocitySpinBox = new LcdSpinBox( 3, m_midiOutputGroupBox ); - m_fixedOutputVelocitySpinBox->setDisplayOffset( 1 ); - m_fixedOutputVelocitySpinBox->addTextForValue( 0, "---" ); + m_fixedOutputVelocitySpinBox->addTextForValue( -1, "---" ); /*: This string must be be short, its width must be less than * width of LCD spin-box of three digits */ m_fixedOutputVelocitySpinBox->setLabel( tr( "VELOC" ) ); @@ -111,8 +109,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiOutputLayout->addWidget( m_outputProgramSpinBox ); m_fixedOutputNoteSpinBox = new LcdSpinBox( 3, m_midiOutputGroupBox ); - m_fixedOutputNoteSpinBox->setDisplayOffset( 1 ); - m_fixedOutputNoteSpinBox->addTextForValue( 0, "---" ); + m_fixedOutputNoteSpinBox->addTextForValue( -1, "---" ); /*: This string must be be short, its width must be less than * width of LCD spin-box of three digits */ m_fixedOutputNoteSpinBox->setLabel( tr( "NOTE" ) );