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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-06-20 13:26:57
Message-ID: 1245504417.097522.32538.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 984207 by mart:

try harder to vertically center the text


 M  +2 -2      abstracttaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp \
#984206:984207 @@ -642,7 +642,7 @@
 
         // 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 it won't fit in the constraints.
         if (height + 2 * lineSpacing > constraints.height()) {
             line.setPosition(QPoint(0, height));
             break;
@@ -688,7 +688,7 @@
     int textHeight = layout.lineCount() * fm.lineSpacing();
 
     QPointF position = textHeight < rect.height() ?
-            QPointF(0, (rect.height() - textHeight) / 2 + \
(fm.tightBoundingRect("M").height() - fm.xHeight())) : QPointF(0, 0); +            \
QPointF(0, (rect.height() - textHeight) / 2 + (fm.tightBoundingRect("M").height() - \
fm.xHeight())/2) : QPointF(0, 0);  QList<QRect> fadeRects;
     int fadeWidth = 30;
 


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

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