summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qanimationgroup_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/animation/qanimationgroup_p.h')
-rw-r--r--src/corelib/animation/qanimationgroup_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/corelib/animation/qanimationgroup_p.h b/src/corelib/animation/qanimationgroup_p.h
index 31c2cd08e8..215734b656 100644
--- a/src/corelib/animation/qanimationgroup_p.h
+++ b/src/corelib/animation/qanimationgroup_p.h
@@ -57,7 +57,7 @@
#include "private/qabstractanimation_p.h"
-#ifndef QT_NO_ANIMATION
+QT_REQUIRE_CONFIG(animation);
QT_BEGIN_NAMESPACE
@@ -76,7 +76,7 @@ public:
void disconnectUncontrolledAnimation(QAbstractAnimation *anim)
{
//0 for the signal here because we might be called from the animation destructor
- QObject::disconnect(anim, 0, q_func(), SLOT(_q_uncontrolledAnimationFinished()));
+ QObject::disconnect(anim, nullptr, q_func(), SLOT(_q_uncontrolledAnimationFinished()));
}
void connectUncontrolledAnimation(QAbstractAnimation *anim)
@@ -89,6 +89,4 @@ public:
QT_END_NAMESPACE
-#endif //QT_NO_ANIMATION
-
#endif //QANIMATIONGROUP_P_H