removing an experimental piece of junk in drawTextItems committed for mistake...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752044
This commit is contained in:
Marco Martin 2007-12-23 12:07:31 +00:00
parent 43574b0c3e
commit 1f84d4c290

View File

@ -806,16 +806,6 @@ QBrush Icon::Private::backgroundBrush(const QStyleOptionGraphicsItem *option) co
void Icon::Private::drawTextItems(QPainter *painter, const QStyleOptionGraphicsItem *option,
const QTextLayout &labelLayout, const QTextLayout &infoLayout) const
{
if (!labelLayout.text().isEmpty() || !infoLayout.text().isEmpty()) {
QRectF bRect(labelLayout.boundingRect());
QSizeF textSize = displaySizeHint(option, bRect.width());
QRectF backRect(QPointF(bRect.width()/2-textSize.width()/2+labelLayout.position().x(),labelLayout.position().y()-5),textSize);
painter->setBrush(shadowColor);
painter->setPen(Qt::NoPen);
painter->setRenderHint(QPainter::Antialiasing);
painter->drawRoundRect(backRect, 15,15*(backRect.width()/backRect.height()));
}
painter->setPen(textColor);
labelLayout.draw(painter, QPointF());