[PATCH] Only show overlay if it is not "0"

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


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404397715 -7200
# Node ID f6796ff72b65eb6b1541012ed16a50d5906cba0a
# Parent  d15ccbaa119ee668b90064902fa66aae7791f8e7
Only show overlay if it is not "0"

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


More information about the Trustbridge-commits mailing list