From kde-commits Mon Jul 20 11:13:31 2009 From: Marco Martin Date: Mon, 20 Jul 2009 11:13:31 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/tasks Message-Id: <1248088411.971090.17847.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124808841926885 SVN commit 999679 by mart: remove the hardcoded QPoint(0,0), prevents any part of the text from being cut off if there is still space available. patch by Alec Moskvin M +1 -2 abstracttaskitem.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp #999678:999679 @@ -716,8 +716,7 @@ QFontMetrics fm(layout.font()); int textHeight = layout.lineCount() * fm.lineSpacing(); - QPointF position = textHeight < rect.height() ? - QPointF(0, (rect.height() - textHeight) / 2 + (fm.tightBoundingRect("M").height() - fm.xHeight())/2) : QPointF(0, 0); + QPointF position(0, (rect.height() - textHeight) / 2 + (fm.tightBoundingRect("M").height() - fm.xHeight())/2); QList fadeRects; int fadeWidth = 30;