Turn off antialiasing when rendering window outline borders.

CCBUG: 283398
icc-effect-5.14.5
Hugo Pereira Da Costa 2011-10-05 18:55:45 +02:00
parent 1876e8fd01
commit e8addb2596
1 changed files with 7 additions and 0 deletions

View File

@ -712,6 +712,10 @@ namespace Oxygen
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
// grey window background is to be rendered
QRegion mask;
@ -761,6 +765,9 @@ namespace Oxygen
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
if( isPreview() )
{