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
10QSvgAnimateNode::QSvgAnimateNode(QSvgNode *parent)
11 : QSvgNode(parent)
12 , m_end(0)
13 , m_fill(Fill::Freeze)
14 , m_additive(Additive::Replace)
15{
16 m_easing = std::make_unique<QSvgLinearEasing>();
17}
18
19void QSvgAnimateNode::setRunningTime(int startMs, int durMs, int endMs, int by)
20{
21 Q_UNUSED(by)
22 m_start = startMs;
23 m_end = endMs;
24 m_duration = durMs;
25}
26
27void QSvgAnimateNode::drawCommand(QPainter *p, QSvgExtraStates &states)
28{
29 Q_UNUSED(p)
30 Q_UNUSED(states)
31}
32
33bool QSvgAnimateNode::shouldDrawNode(QPainter *p, QSvgExtraStates &states) const
34{
35 Q_UNUSED(p)
36 Q_UNUSED(states)
37 return false;
38}
39
40QT_END_NAMESPACE
Combined button and popup list for selecting options.