Knob enhancements and missing AFP logo

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1006 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-21 05:04:47 +00:00
parent eff18ad8dc
commit e3696c5769
4 changed files with 12 additions and 3 deletions

View File

@@ -293,7 +293,7 @@ void knob::drawKnob( QPainter * _p )
if( m_outerColor )
{
QRadialGradient gradient( centerPoint(), outerRadius() );
gradient.setColorAt(0.33, _p->pen().brush().color() );
gradient.setColorAt(0.4, _p->pen().brush().color() );
gradient.setColorAt(1, *m_outerColor );
_p->setPen( QPen( gradient, lineWidth(), Qt::SolidLine, Qt::RoundCap ) );

View File

@@ -95,7 +95,7 @@ void volumeKnob::mousePressEvent( QMouseEvent * _me )
s_textFloat->setText( m_hintTextBeforeValue + val );
s_textFloat->moveGlobal( this,
QPoint( m_knobPixmap->width() + 2, 0 ) );
QPoint( width() + 2, 0 ) );
s_textFloat->show();
m_buttonPressed = TRUE;
}
@@ -167,7 +167,7 @@ void volumeKnob::wheelEvent( QWheelEvent * _we )
}
s_textFloat->setText( m_hintTextBeforeValue + val );
s_textFloat->moveGlobal( this, QPoint( m_knobPixmap->width() + 2, 0 ) );
s_textFloat->moveGlobal( this, QPoint( width() + 2, 0 ) );
s_textFloat->setVisibilityTimeOut( 1000 );
emit sliderMoved( model()->value() );