summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/animation')
-rw-r--r--src/corelib/animation/qabstractanimation.cpp4
-rw-r--r--src/corelib/animation/qabstractanimation_p.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index 17814c6756a..c3e1ba4010f 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -113,6 +113,10 @@
#include "qabstractanimation_p.h"
+#if defined(Q_OS_WASM)
+#include <QtCore/private/qwasmanimationdriver_p.h>
+#endif
+
#include <QtCore/qmath.h>
#include <QtCore/qcoreevent.h>
#include <QtCore/qpointer.h>
diff --git a/src/corelib/animation/qabstractanimation_p.h b/src/corelib/animation/qabstractanimation_p.h
index b4f462071a7..1eaa475f613 100644
--- a/src/corelib/animation/qabstractanimation_p.h
+++ b/src/corelib/animation/qabstractanimation_p.h
@@ -23,6 +23,10 @@
#include <private/qproperty_p.h>
#include <qabstractanimation.h>
+#if defined(Q_OS_WASM)
+#include <QtCore/private/qwasmanimationdriver_p.h>
+#endif
+
QT_REQUIRE_CONFIG(animation);
QT_BEGIN_NAMESPACE
@@ -184,7 +188,11 @@ private:
friend class QAnimationDriver;
QAnimationDriver *driver;
+#if defined(Q_OS_WASM)
+ QWasmAnimationDriver defaultDriver;
+#else
QDefaultAnimationDriver defaultDriver;
+#endif
QBasicTimer pauseTimer;