[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/private
From:       Diego Casella <polentino911 () gmail ! com>
Date:       2010-12-29 19:36:25
Message-ID: 20101229193625.1E87A3E1F1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210143 by casella:

* Prevent plasma tooltips to draw halos on empty lines.
Closes review request #6233


 M  +4 -0      tooltip.cpp  


--- trunk/KDE/kdelibs/plasma/private/tooltip.cpp #1210142:1210143
@@ -91,8 +91,12 @@
         QTextLine line;
         for (int i = 0; i < layout->lineCount(); ++i) {
             line = layout->lineAt(i);
+
+            // Add halo rect only when a non empty line is found
+            if (line.naturalTextWidth()) {
             m_haloRects.append(line.naturalTextRect().translated(layout->position().toPoint()).toRect().translated(m_margin, \
m_margin));  }
+        }
 
         update();
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic