Fix radioButton height for Windows style
Change-Id: I755ed32f7458fec0fcbc5243d25fb1f6ecf46492 Task-number: QTBUG-32420 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>bb10
parent
1cdcf64ad5
commit
97a32c8440
|
|
@ -909,7 +909,7 @@ void QWindowsStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt,
|
|||
int xOffset = 0;
|
||||
int yOffset = 0;
|
||||
int indicatorWidth = proxy()->pixelMetric(PM_ExclusiveIndicatorWidth);
|
||||
int indicatorHeight = proxy()->pixelMetric(PM_ExclusiveIndicatorWidth);
|
||||
int indicatorHeight = proxy()->pixelMetric(PM_ExclusiveIndicatorHeight);
|
||||
if (ir.width() > indicatorWidth)
|
||||
xOffset += (ir.width() - indicatorWidth)/2;
|
||||
if (ir.height() > indicatorHeight)
|
||||
|
|
|
|||
Loading…
Reference in New Issue