changeset 735:c92eb6298dd7

Activate antialiasing for the painter
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 03 Jul 2014 16:39:51 +0200
parents f6796ff72b65
children a26aada5900f
files ui/textoverlaybutton.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui/textoverlaybutton.cpp	Thu Jul 03 16:28:35 2014 +0200
+++ b/ui/textoverlaybutton.cpp	Thu Jul 03 16:39:51 2014 +0200
@@ -22,6 +22,11 @@
         return;
     }
     QPainter painter(this);
+    /* Only usable if opengl is used */
+    painter.setRenderHint(QPainter::HighQualityAntialiasing, true);
+    /* Else */
+    painter.setRenderHint(QPainter::Antialiasing, true);
+
     QRect myRect = e->rect().translated(26, -29);
 
     // circle

http://wald.intevation.org/projects/trustbridge/