Turn off antialiasing when rendering window outline borders.

CCBUG: 283398
This commit is contained in:
Hugo Pereira Da Costa 2011-10-05 18:55:45 +02:00
parent 1876e8fd01
commit e8addb2596

View file

@ -712,6 +712,10 @@ namespace Oxygen
if( configuration().drawTitleOutline() && isActive() ) if( configuration().drawTitleOutline() && isActive() )
{ {
// save old hints and turn off anti-aliasing
const QPainter::RenderHints hints( painter->renderHints() );
painter->setRenderHint( QPainter::Antialiasing, false );
// save mask and frame to where // save mask and frame to where
// grey window background is to be rendered // grey window background is to be rendered
QRegion mask; QRegion mask;
@ -761,6 +765,9 @@ namespace Oxygen
painter->drawLine( rect.topRight()+QPoint(1,0), rect.bottomRight()+QPoint(1, 0) ); painter->drawLine( rect.topRight()+QPoint(1,0), rect.bottomRight()+QPoint(1, 0) );
} }
// restore old hints
painter->setRenderHints( hints );
// in preview mode also adds center square // in preview mode also adds center square
if( isPreview() ) if( isPreview() )
{ {