don't paint the background also if the color is totally ransparent

svn path=/trunk/KDE/kdelibs/; revision=1057251
This commit is contained in:
Marco Martin 2009-12-01 20:10:49 +00:00
parent bd279b081f
commit c95a699031

View File

@ -1020,7 +1020,7 @@ void IconWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
d->layoutTextItems(option, icon, &labelLayout, &infoLayout, &textBoundingRect);
if (d->textBgColor != QColor() &&
if (d->textBgColor != QColor() && d->textBgColor.alpha() > 0 &&
!(d->text.isEmpty() && d->infoText.isEmpty()) &&
!textBoundingRect.isEmpty() &&
!qFuzzyCompare(d->hoverAlpha, (qreal)1.0)) {