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