From 3ff6d8499a5ca5a33097c0045fa352d66fd01479 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 22 Jan 2014 18:33:32 +0100 Subject: [PATCH] Organic: fixed tooltips for knobs that do not need a unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some knobs it doesn't make sense to use a percentage sign as unit. Thanks to Tobiasz KaroĊ„ for pointing out this issue. --- plugins/organic/organic.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/organic/organic.cpp b/plugins/organic/organic.cpp index f13617567..e2b0241b8 100644 --- a/plugins/organic/organic.cpp +++ b/plugins/organic/organic.cpp @@ -389,7 +389,7 @@ organicInstrumentView::organicInstrumentView( Instrument * _instrument, m_fx1Knob = new organicKnob( this ); m_fx1Knob->move( 15, 201 ); m_fx1Knob->setFixedSize( 37, 47 ); - m_fx1Knob->setHintText( tr( "Distortion:" ) + " ", "%" ); + m_fx1Knob->setHintText( tr( "Distortion:" ) + " ", QString() ); m_fx1Knob->setObjectName( "fx1Knob" ); // setup volume-knob @@ -450,8 +450,7 @@ void organicInstrumentView::modelChanged() // setup waveform-knob knob * oscKnob = new organicKnob( this ); oscKnob->move( x + i * colWidth, y ); - oscKnob->setHintText( tr( "Osc %1 waveform:" ).arg( - i + 1 ) + " ", "%" ); + oscKnob->setHintText( tr( "Osc %1 waveform:" ).arg( i + 1 ) + " ", QString() ); // setup volume-knob knob * volKnob = new knob( knobStyled, this );