Return empty Rect if nothing to paint
This commit is contained in:
parent
ffa150a5fd
commit
d510570943
@ -109,6 +109,9 @@ int QskRadioBoxSkinlet::sampleCount( const QskSkinnable* skinnable,
|
|||||||
QRectF QskRadioBoxSkinlet::buttonRect( const QskRadioBox* radio,
|
QRectF QskRadioBoxSkinlet::buttonRect( const QskRadioBox* radio,
|
||||||
const QskAspect::Subcontrol target,
|
const QskAspect::Subcontrol target,
|
||||||
const QRectF& rect, int index ) const {
|
const QRectF& rect, int index ) const {
|
||||||
|
if( index < 0 ) {
|
||||||
|
return QRectF();
|
||||||
|
}
|
||||||
auto result = rect;
|
auto result = rect;
|
||||||
result.setSize( radio->strutSizeHint( target ) );
|
result.setSize( radio->strutSizeHint( target ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user