From f326ae670a1b1ad5e9c5295ab1fe8a16ed6d1739 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 19 Jan 2014 23:36:04 +0100 Subject: [PATCH] InstrumentMidiIOView: rebase all values in SpinBoxes to 1 To keep consistency rebase all displayed values to 1 like we had for MIDI channel and program already. --- src/gui/widgets/InstrumentMidiIOView.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/InstrumentMidiIOView.cpp b/src/gui/widgets/InstrumentMidiIOView.cpp index aa2d8f8f1..8c01179a7 100644 --- a/src/gui/widgets/InstrumentMidiIOView.cpp +++ b/src/gui/widgets/InstrumentMidiIOView.cpp @@ -61,7 +61,8 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiInputLayout->addWidget( m_inputChannelSpinBox ); m_fixedInputVelocitySpinBox = new lcdSpinBox( 3, m_midiInputGroupBox ); - m_fixedInputVelocitySpinBox->addTextForValue( -1, "---" ); + m_fixedInputVelocitySpinBox->setDisplayOffset( 1 ); + m_fixedInputVelocitySpinBox->addTextForValue( 0, "---" ); m_fixedInputVelocitySpinBox->setLabel( tr( "VELOCITY" ) ); m_fixedInputVelocitySpinBox->setEnabled( false ); midiInputLayout->addWidget( m_fixedInputVelocitySpinBox ); @@ -87,7 +88,8 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiOutputLayout->addWidget( m_outputChannelSpinBox ); m_fixedOutputVelocitySpinBox = new lcdSpinBox( 3, m_midiOutputGroupBox ); - m_fixedOutputVelocitySpinBox->addTextForValue( -1, "---" ); + m_fixedOutputVelocitySpinBox->setDisplayOffset( 1 ); + m_fixedOutputVelocitySpinBox->addTextForValue( 0, "---" ); m_fixedOutputVelocitySpinBox->setLabel( tr( "VELOCITY" ) ); m_fixedOutputVelocitySpinBox->setEnabled( false ); midiOutputLayout->addWidget( m_fixedOutputVelocitySpinBox ); @@ -98,7 +100,8 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) : midiOutputLayout->addWidget( m_outputProgramSpinBox ); m_fixedOutputNoteSpinBox = new lcdSpinBox( 3, m_midiOutputGroupBox ); - m_fixedOutputNoteSpinBox->addTextForValue( -1, "---" ); + m_fixedOutputNoteSpinBox->setDisplayOffset( 1 ); + m_fixedOutputNoteSpinBox->addTextForValue( 0, "---" ); m_fixedOutputNoteSpinBox->setLabel( tr( "NOTE" ) ); m_fixedOutputNoteSpinBox->setEnabled( false ); midiOutputLayout->addWidget( m_fixedOutputNoteSpinBox );