changeset 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 d15ccbaa119e
children c92eb6298dd7 54ca82647dc5
files ui/textoverlaybutton.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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/