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
parent
f34e080063
commit
cfa8fcdda0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue