diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 81cbe2cf..7df6e46d 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -4659,7 +4659,7 @@ bool Style::drawToolButtonLabelControl(const QStyleOption *option, QPainter *pai } if (hasIcon && !hasText) { // icon only - iconRect = centerRect(contentsRect, iconSize); + iconRect = contentsRect; } else if (!hasIcon && hasText) { // text only textRect = contentsRect; textFlags |= Qt::AlignCenter; @@ -4712,6 +4712,7 @@ bool Style::drawToolButtonLabelControl(const QStyleOption *option, QPainter *pai // render arrow or icon if (hasIcon) { + iconRect = centerRect(iconRect, iconSize); if (hasArrow) { QStyleOptionToolButton copy(*toolButtonOption); copy.rect = iconRect;