when drawing automation, do not overpaint border

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1202 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-29 09:30:23 +00:00
parent 16cfe0654c
commit 40aaf6f169
2 changed files with 10 additions and 2 deletions

View File

@@ -628,7 +628,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
const float h = ( height()-2*TCO_BORDER_WIDTH ) /
y_scale;
p.translate( 0.0f, max * height() / y_scale );
p.translate( 0.0f, max * height() / y_scale-1 );
p.scale( 1.0f, -h );
//QLinearGradient lin2grad( 0, min, 0, max );
@@ -659,7 +659,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
}
else
{
x2 = width() - TCO_BORDER_WIDTH + 1;
x2 = width() - TCO_BORDER_WIDTH;
}
p.fillRect( QRectF( x1, 0.0f, x2-x1, it.value() ),
lin2grad /*QColor( 255, 224, 0 )*/ );