Widgets: Deactivate effect on destruction
If a QGraphicsEffect is active during destruction, the corresponding widget does not inform it's parent about this change which leads to artefacts of the old effect. Therefore trigger an update through effectBoundingRectChanged() if the graphics effect source changes. Fixes: QTBUG-109165 Change-Id: Ib3fd9bec2134ed61f098c4ce6629ebcc5df90787 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 2946447f50bc03ae5c9b5b9668d43ca7223a53c1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3da9143b36
commit
c8d46f7926
@ -121,6 +121,7 @@ public:
|
||||
QGraphicsEffect::ChangeFlags flags;
|
||||
if (source) {
|
||||
flags |= QGraphicsEffect::SourceDetached;
|
||||
source->d_func()->effectBoundingRectChanged();
|
||||
source->d_func()->invalidateCache();
|
||||
source->d_func()->detach();
|
||||
delete source;
|
||||
|
Loading…
x
Reference in New Issue
Block a user