diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 88d3558d..fd9caab5 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -4647,8 +4647,9 @@ bool Style::drawToolButtonLabelControl(const QStyleOption *option, QPainter *pai iconSize); } - textRect = QRect(QPoint(iconRect.right() + Metrics::ToolButton_ItemSpacing + 1, contentsRect.top() + (contentsRect.height() - textSize.height()) / 2), - textSize); + const int padding = (contentsRect.height() - textSize.height()) / 2; + textRect = QRect(QPoint(iconRect.right() + Metrics::ToolButton_ItemSpacing + 1, contentsRect.top() + padding), + QPoint(contentsRect.right(), contentsRect.bottom() - padding)); // handle right to left layouts iconRect = visualRect(option, iconRect);