[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-07-20 11:13:31
Message-ID: 1248088411.971090.17847.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<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