Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpauseanimationjob.cpp
Go to the documentation of this file.
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// Qt-Security score:significant
4
5#include "private/qpauseanimationjob_p.h"
6
7QT_BEGIN_NAMESPACE
8
9QPauseAnimationJob::QPauseAnimationJob(int duration)
10 : m_duration(duration)
11{
12 m_isPause = true;
13}
14
15QPauseAnimationJob::~QPauseAnimationJob()
16{
17}
18
19int QPauseAnimationJob::duration() const
20{
21 return m_duration;
22}
23
24void QPauseAnimationJob::setDuration(int msecs)
25{
26 m_duration = msecs;
27}
28
29void QPauseAnimationJob::updateCurrentTime(int)
30{
31}
32
33void QPauseAnimationJob::debugAnimation(QDebug d) const
34{
35 d << "PauseAnimationJob(" << Qt::hex << (const void *) this << Qt::dec << ")" << "duration:" << m_duration;
36}
37
38QT_END_NAMESPACE