diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2009-12-07 15:04:42 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2009-12-07 15:04:42 +0100 |
commit | fb78a402b512b017c850e7410745c4d20da04a7c (patch) | |
tree | 0b3a4ec5f08bebf566a3e46e55c228ab9fbcbd9b /src/gui/kernel/qwidget.h | |
parent | 7ad244cad155f32f22e82e1458eb1c42f759a620 (diff) | |
download | qt4-tools-fb78a402b512b017c850e7410745c4d20da04a7c.tar.gz |
Fixed memory leaks when removing a QGraphicsEffect from a QGraphicsItem or QWidget
with setGraphicsEffect(0).
The effect was not deleted in that case, problem solved for both QGraphicsItem
and QWidget.
Autotest included.
Task-number: QTBUG-5917
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/kernel/qwidget.h')
-rw-r--r-- | src/gui/kernel/qwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.h b/src/gui/kernel/qwidget.h index 5ba1d231a6..0824db36fb 100644 --- a/src/gui/kernel/qwidget.h +++ b/src/gui/kernel/qwidget.h @@ -744,6 +744,7 @@ private: friend struct QWidgetExceptionCleaner; friend class QGestureManager; friend class QWinNativePanGestureRecognizer; + friend class QWidgetEffectSourcePrivate; #ifdef Q_WS_MAC friend class QCoreGraphicsPaintEnginePrivate; |