1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "private/qpauseanimationjob_p.h"
5
6QT_BEGIN_NAMESPACE
7
8QPauseAnimationJob::QPauseAnimationJob(int duration)
9 : m_duration(duration)
10{
11 m_isPause = true;
12}
13
14QPauseAnimationJob::~QPauseAnimationJob()
15{
16}
17
18int QPauseAnimationJob::duration() const
19{
20 return m_duration;
21}
22
23void QPauseAnimationJob::setDuration(int msecs)
24{
25 m_duration = msecs;
26}
27
28void QPauseAnimationJob::updateCurrentTime(int)
29{
30}
31
32void QPauseAnimationJob::debugAnimation(QDebug d) const
33{
34 d << "PauseAnimationJob(" << Qt::hex << (const void *) this << Qt::dec << ")" << "duration:" << m_duration;
35}
36
37QT_END_NAMESPACE
38

source code of qtdeclarative/src/qml/animations/qpauseanimationjob.cpp