|
if (groupBox->subControls & (SC_GroupBoxLabel | SC_GroupBoxCheckBox)) { |
|
int fontHeight = option->fontMetrics.height(); |
|
int topMargin = |
|
qMax(pixelMetric(PM_ExclusiveIndicatorHeight), fontHeight); |
|
topMargin += |
|
(int)((qreal)fontHeight * Ph::GroupBox_LabelBottomMarginFontRatio); |
|
r.setTop(r.top() + topMargin); |
|
} |
According to the doc
QStyle::PM_ExclusiveIndicatorHeight 40 is Height of a radio button indicator.
Shouldn't you use
QStyle::PM_IndicatorHeight 38: Height of a checkbox indicator.
phantomstyle/src/phantom/phantomstyle.cpp
Lines 4731 to 4738 in 6e9580b
According to the doc
QStyle::PM_ExclusiveIndicatorHeight 40is Height of a radio button indicator.Shouldn't you use
QStyle::PM_IndicatorHeight 38: Height of a checkbox indicator.