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:
@@ -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 ) );
|
||||
|
||||
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user