summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-09-25 14:42:01 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2009-09-25 14:42:01 (GMT)
commit2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1 (patch)
treef6ddb01707d2e59e29b47ffcd2ea016c3164fc54 /src/gui
parent586722a4e288e9f1e9d7751a0e87e39c274144d8 (diff)
downloadQt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.zip
Qt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.tar.gz
Qt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.tar.bz2
ifdefs to allow compilation with QT_NO_MAINWINDOW and QT_NO_TOOLBAR
Reviewed-by: Paul
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/qwidgetanimator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qwidgetanimator.cpp b/src/gui/widgets/qwidgetanimator.cpp
index d4a61e3..f440961 100644
--- a/src/gui/widgets/qwidgetanimator.cpp
+++ b/src/gui/widgets/qwidgetanimator.cpp
@@ -60,7 +60,9 @@ void QWidgetAnimator::abort(QWidget *w)
QPropertyAnimation *anim = *it;
m_animation_map.erase(it);
anim->stop();
+#ifndef QT_NO_MAINWINDOW
m_mainWindowLayout->animationFinished(w);
+#endif
#else
Q_UNUSED(w); //there is no animation to abort
#endif //QT_NO_ANIMATION