summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-25 14:40:08 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-25 14:41:07 (GMT)
commit1adc5dbd8f9561b3fbf38759ba5abdca9f3a490b (patch)
tree5fdabd49a59e9a12cae291d7422ce222dbf8dfed
parent22e2ba1e5e3345b99f41b62b9984ca6871579122 (diff)
downloadQt-1adc5dbd8f9561b3fbf38759ba5abdca9f3a490b.zip
Qt-1adc5dbd8f9561b3fbf38759ba5abdca9f3a490b.tar.gz
Qt-1adc5dbd8f9561b3fbf38759ba5abdca9f3a490b.tar.bz2
QWidgetanimator: the animations are children of the widget they animate
This will remove a false pmemleak under valgrind. Reviewed-by: ogoffart
-rw-r--r--src/gui/widgets/qwidgetanimator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qwidgetanimator.cpp b/src/gui/widgets/qwidgetanimator.cpp
index beb6be2..972e07b 100644
--- a/src/gui/widgets/qwidgetanimator.cpp
+++ b/src/gui/widgets/qwidgetanimator.cpp
@@ -93,7 +93,7 @@ void QWidgetAnimator::animate(QWidget *widget, const QRect &_final_geometry, boo
if (it != m_animation_map.constEnd() && (*it)->endValue().toRect() == final_geometry)
return;
- QPropertyAnimation *anim = new QPropertyAnimation(widget, "geometry");
+ QPropertyAnimation *anim = new QPropertyAnimation(widget, "geometry", widget);
anim->setDuration(animate ? 200 : 0);
anim->setEasingCurve(QEasingCurve::InOutQuad);
anim->setEndValue(final_geometry);