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
qsvganimate.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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 reason:default
4
5
7
9
10QSvgLinearEasing::~QSvgLinearEasing()
11 = default;
12
13QSvgAnimateNode::QSvgAnimateNode(QSvgNode *parent)
14 : QSvgNode(parent)
15 , m_end(0)
16 , m_fill(Fill::Freeze)
17 , m_additive(Additive::Replace)
18{
19 m_easing = std::make_unique<QSvgLinearEasing>();
20}
21
22QSvgAnimateNode::~QSvgAnimateNode()
23 = default;
24
25void QSvgAnimateNode::setRunningTime(int startMs, int durMs, int endMs, int by)
26{
27 Q_UNUSED(by)
28 m_start = startMs;
29 m_end = endMs;
30 m_duration = durMs;
31}
32
33void QSvgAnimateNode::drawCommand(QPainter *p, QSvgExtraStates &states)
34{
35 Q_UNUSED(p)
36 Q_UNUSED(states)
37}
38
39bool QSvgAnimateNode::shouldDrawNode(QPainter *p, QSvgExtraStates &states) const
40{
41 Q_UNUSED(p)
42 Q_UNUSED(states)
43 return false;
44}
45
46QSvgAnimateColor::~QSvgAnimateColor()
47 = default;
48
49
50QSvgAnimateTransform::~QSvgAnimateTransform()
51 = default;
52
53QT_END_NAMESPACE
Combined button and popup list for selecting options.