From 3a59fdea586177d72f52af81f0dc8860faeaf3a2 Mon Sep 17 00:00:00 2001 From: "Raine M. Ekman" Date: Sat, 10 Nov 2012 12:16:32 +0100 Subject: [PATCH] InstrumentMidiIOView: fix number of digits for MIDI channel spinboxes MIDI channels are in range 1 to 16, so there's no need for 3 digits here. Signed-off-by: Tobias Doerffel --- src/gui/widgets/InstrumentMidiIOView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/InstrumentMidiIOView.cpp b/src/gui/widgets/InstrumentMidiIOView.cpp index 7db26499b..8969db162 100644 --- a/src/gui/widgets/InstrumentMidiIOView.cpp +++ b/src/gui/widgets/InstrumentMidiIOView.cpp @@ -47,8 +47,8 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget * _parent ) : m_midiInputGroupBox = new groupBox( tr( "ENABLE MIDI INPUT" ), this ); m_midiInputGroupBox->setGeometry( 4, 5, 242, 80 ); - m_inputChannelSpinBox = new lcdSpinBox( 3, m_midiInputGroupBox ); - m_inputChannelSpinBox->addTextForValue( 0, "---" ); + m_inputChannelSpinBox = new lcdSpinBox( 2, m_midiInputGroupBox ); + m_inputChannelSpinBox->addTextForValue( 0, "--" ); m_inputChannelSpinBox->setLabel( tr( "CHANNEL" ) ); m_inputChannelSpinBox->move( 16, 32 ); m_inputChannelSpinBox->setEnabled( false ); @@ -69,7 +69,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget * _parent ) : m_midiOutputGroupBox = new groupBox( tr( "ENABLE MIDI OUTPUT" ), this ); m_midiOutputGroupBox->setGeometry( 4, 90, 242, 80 ); - m_outputChannelSpinBox = new lcdSpinBox( 3, m_midiOutputGroupBox ); + m_outputChannelSpinBox = new lcdSpinBox( 2, m_midiOutputGroupBox ); m_outputChannelSpinBox->setLabel( tr( "CHANNEL" ) ); m_outputChannelSpinBox->move( 16, 32 ); m_outputChannelSpinBox->setEnabled( false );