[PATCH] Activate antialiasing for the painter

Wald Commits scm-commit at wald.intevation.org
Thu Jul 3 16:39:57 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404398391 -7200
# Node ID c92eb6298dd7724ca9021b5781f268aaec351627
# Parent  f6796ff72b65eb6b1541012ed16a50d5906cba0a
Activate antialiasing for the painter

diff -r f6796ff72b65 -r c92eb6298dd7 ui/textoverlaybutton.cpp
--- 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


More information about the Trustbridge-commits mailing list