AutomationPatternView: anti-aliased painting of automation data

If pixels/tact ratio <= 32 use anti-aliasing for drawing automation data
resulting in a smoother appearence.
This commit is contained in:
Tobias Doerffel
2009-03-16 17:38:39 +01:00
parent 9ea3c6660d
commit b1787f2c87

View File

@@ -242,6 +242,11 @@ void automationPatternView::paintEvent( QPaintEvent * )
lin2grad.setColorAt( 1, cl );
lin2grad.setColorAt( 0, cd );
if( ppt <= 32 )
{
p.setRenderHint( QPainter::Antialiasing, true );
}
for( automationPattern::timeMap::const_iterator it =
m_pat->getTimeMap().begin();
it != m_pat->getTimeMap().end(); ++it )