Fusion style: add indent to groupbox title
Add indent to the title if groupbox alignment is set to Qt::AlignLeft | Qt::AlignVCenter. Fixes: QTBUG-121049 Pick-to: 6.7 6.6 Change-Id: I25e2fe4e73b920baf4c678b6b0e758d1da7cf632 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
e57f7b1b01
commit
4725bbb3ee
@ -3366,6 +3366,10 @@ QRect QFusionStyle::subControlRect(ComplexControl control, const QStyleOptionCom
|
||||
case Qt::AlignRight:
|
||||
rect.moveLeft(option->rect.width() - width);
|
||||
break;
|
||||
case Qt::AlignLeft:
|
||||
if ((groupBoxTextAlignment & Qt::AlignVertical_Mask) == Qt::AlignVCenter)
|
||||
rect.moveLeft(proxy()->pixelMetric(PM_LayoutLeftMargin, option, widget));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user