don't try to draw an halo rect if the size is empty (amarok action icons look better now)
svn path=/trunk/KDE/kdelibs/; revision=1065132
This commit is contained in:
parent
923d772a85
commit
010bcc9629
@ -1059,7 +1059,8 @@ void IconWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
|
|||||||
|
|
||||||
PaintUtils::shadowBlur(shadow, 2, d->shadowColor);
|
PaintUtils::shadowBlur(shadow, 2, d->shadowColor);
|
||||||
painter->drawImage(textBoundingRect.topLeft() + shadowPos, shadow);
|
painter->drawImage(textBoundingRect.topLeft() + shadowPos, shadow);
|
||||||
} else if (!(d->text.isEmpty() && d->infoText.isEmpty())) {
|
} else if (!(d->text.isEmpty() && d->infoText.isEmpty()) &&
|
||||||
|
!textBoundingRect.isEmpty()) {
|
||||||
QRect labelRect = d->labelRectangle(option, icon, d->text).toRect();
|
QRect labelRect = d->labelRectangle(option, icon, d->text).toRect();
|
||||||
|
|
||||||
foreach (QRect rect, d->haloRects) {
|
foreach (QRect rect, d->haloRects) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user