Ensure the text is not cut off when shown under a toolbutton icon

Change-Id: I82cfa549b9db9439ab03123ddf73e5f2d001738e
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
bb10
Andy Shaw 2014-01-29 18:52:19 +01:00 committed by The Qt Project
parent f34e080063
commit cfa8fcdda0
1 changed files with 1 additions and 1 deletions

View File

@ -1598,7 +1598,7 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt,
if (toolbutton->toolButtonStyle == Qt::ToolButtonTextUnderIcon) {
pr.setHeight(pmSize.height() + 6);
tr.adjust(0, pr.height() - 1, 0, -2);
tr.adjust(0, pr.height() - 1, 0, -1);
pr.translate(shiftX, shiftY);
if (!hasArrow) {
proxy()->drawItemPixmap(p, pr, Qt::AlignCenter, pm);