don't paint the background also if the color is totally ransparent
svn path=/trunk/KDE/kdelibs/; revision=1057251
This commit is contained in:
parent
bd279b081f
commit
c95a699031
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user