aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/timeline/qquicktimeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/timeline/qquicktimeline.cpp')
-rw-r--r--src/imports/timeline/qquicktimeline.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/imports/timeline/qquicktimeline.cpp b/src/imports/timeline/qquicktimeline.cpp
index 938952d..ec1d561 100644
--- a/src/imports/timeline/qquicktimeline.cpp
+++ b/src/imports/timeline/qquicktimeline.cpp
@@ -234,11 +234,18 @@ void QQuickTimeline::setCurrentFrame(qreal frame)
return;
d->currentFrame = frame;
+ reevaulate();
+
+ emit currentFrameChanged();
+}
+
+void QQuickTimeline::reevaulate()
+{
+ Q_D(QQuickTimeline);
+
if (d->componentComplete && d->enabled)
for (auto keyFrames : d->keyframes)
keyFrames->setProperty(d->currentFrame);
-
- emit currentFrameChanged();
}
void QQuickTimeline::init()