widgets: Re-calculate focus frame style option after setting new geometry
Fixes: QTBUG-83019 Change-Id: I75d3d93732cb0c5a5b7350f19f0227998bda4791 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
1a18e138f4
commit
bd78753d62
@ -99,6 +99,8 @@ void QFocusFramePrivate::updateSize()
|
||||
return;
|
||||
|
||||
q->setGeometry(geom);
|
||||
|
||||
opt.rect = q->rect();
|
||||
QStyleHintReturnMask mask;
|
||||
if (q->style()->styleHint(QStyle::SH_FocusFrame_Mask, &opt, q, &mask))
|
||||
q->setMask(mask.region);
|
||||
|
Loading…
Reference in New Issue
Block a user