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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Andre Moreira Magalhaes <andrunko () yahoo ! com ! br>
Date:       2008-01-25 21:48:00
Message-ID: 1201297680.284088.25525.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 766447 by andrunko:

Proper layout text on taskbar item.


 M  +4 -2      abstracttaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp #766446:766447
@@ -290,8 +290,10 @@
         // Make the last line that will fit infinitely long.
         // drawTextLayout() will handle this by fading the line out
         // if it won't fit in the contraints.
-        if (height + 2 * lineSpacing > constraints.height())
-            maxWidth = INT_MAX;
+        if (height + 2 * lineSpacing > constraints.height()) {
+            line.setPosition(QPoint(0, height));
+            break;
+        }
 
         line.setLineWidth(maxWidth);
         line.setPosition(QPoint(0, height));
[prev in list] [next in list] [prev in thread] [next in thread] 

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