note volume bars are painted blue if selected

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1920 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-14 09:55:06 +00:00
parent 1e0bf14904
commit 20f50350e6
3 changed files with 7 additions and 3 deletions

View File

@@ -2542,6 +2542,10 @@ void pianoRoll::paintEvent( QPaintEvent * _pe )
{
QColor color = QColor::fromHsv( 120, 221,
qMin(255, 60 + ( *it )->getVolume() ) );
if( ( *it )->selected() )
{
color.setRgb( 0x00, 0x40, 0xC0 );
}
p.setPen( QPen( color,
NE_LINE_WIDTH ) );
@@ -2583,7 +2587,7 @@ void pianoRoll::paintEvent( QPaintEvent * _pe )
y_base - key * KEY_LINE_HEIGHT );
}
}
p.setPen( QPen( QColor( 0xEA, 0xA1, 0x00 ),
NE_LINE_WIDTH*2 ) );
p.drawPoints( editHandles );