From e8addb2596234319816ff41d72a4b1332d8c0a35 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 5 Oct 2011 18:55:45 +0200 Subject: [PATCH] Turn off antialiasing when rendering window outline borders. CCBUG: 283398 --- clients/oxygen/oxygenclient.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 0e26099f8b..7a09794d89 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -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() ) {