diff ui/textoverlaybutton.cpp @ 981:947a880ec5d3

(issue72) Set font color in red circle to white. Cleanup old code.
author Emanuel Schuetze <emanuel@intevation.de>
date Fri, 29 Aug 2014 16:08:33 +0200
parents 57371f2e8dae
children
line wrap: on
line diff
--- a/ui/textoverlaybutton.cpp	Fri Aug 29 14:28:00 2014 +0200
+++ b/ui/textoverlaybutton.cpp	Fri Aug 29 16:08:33 2014 +0200
@@ -30,16 +30,6 @@
     QRect myRect = e->rect().translated(26, -29);
 
     // circle
-/*  old manually painted background
-    QLinearGradient gradient(myRect.topLeft(),
-                             myRect.bottomRight());
-    gradient.setColorAt(0, Qt::white);
-    gradient.setColorAt(0.7, Qt::red);
-    QBrush brush(gradient);
-    painter.setBrush(brush);
-    painter.setPen(Qt::white);
-    painter.drawEllipse(75.5, 6, 20, 20);
-    */
     painter.drawPixmap(75.5, 5, mBackground);
 
     // font
@@ -47,6 +37,7 @@
     font.setPixelSize(11);
     font.setWeight(QFont::Bold);
     painter.setFont(font);
+    painter.setPen(Qt::white);
     painter.drawText(myRect, Qt::AlignCenter | Qt::AlignVCenter, mOverlay);
 
     return;

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