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 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | QPauseAnimationJob::QPauseAnimationJob(int duration) |
9 | : m_duration(duration) |
10 | { |
11 | m_isPause = true; |
12 | } |
13 | |
14 | QPauseAnimationJob::~QPauseAnimationJob() |
15 | { |
16 | } |
17 | |
18 | int QPauseAnimationJob::duration() const |
19 | { |
20 | return m_duration; |
21 | } |
22 | |
23 | void QPauseAnimationJob::setDuration(int msecs) |
24 | { |
25 | m_duration = msecs; |
26 | } |
27 | |
28 | void QPauseAnimationJob::updateCurrentTime(int) |
29 | { |
30 | } |
31 | |
32 | void QPauseAnimationJob::debugAnimation(QDebug d) const |
33 | { |
34 | d << "PauseAnimationJob("<< Qt::hex << (const void *) this << Qt::dec << ")"<< "duration:"<< m_duration; |
35 | } |
36 | |
37 | QT_END_NAMESPACE |
38 |