diff ui/textoverlaybutton.cpp @ 734:f6796ff72b65

Only show overlay if it is not "0"
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 03 Jul 2014 16:28:35 +0200
parents 0bb54205c55a
children c92eb6298dd7
line wrap: on
line diff
--- a/ui/textoverlaybutton.cpp	Thu Jul 03 16:19:26 2014 +0200
+++ b/ui/textoverlaybutton.cpp	Thu Jul 03 16:28:35 2014 +0200
@@ -18,6 +18,9 @@
 void TextOverlayButton::paintEvent(QPaintEvent *e)
 {
     QToolButton::paintEvent(e);
+    if (mOverlay == "0") {
+        return;
+    }
     QPainter painter(this);
     QRect myRect = e->rect().translated(26, -29);
 

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