| 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 | |
| 4 | #include "qsvganimate_p.h" |
| 5 | |
| 6 | QT_BEGIN_NAMESPACE |
| 7 | |
| 8 | QSvgAnimateNode::QSvgAnimateNode(QSvgNode *parent) |
| 9 | : QSvgNode(parent) |
| 10 | , m_end(0) |
| 11 | , m_fill(Fill::Freeze) |
| 12 | , m_additive(Additive::Replace) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | void QSvgAnimateNode::setRunningTime(int startMs, int durMs, int endMs, int by) |
| 17 | { |
| 18 | Q_UNUSED(by) |
| 19 | m_start = startMs; |
| 20 | m_end = endMs; |
| 21 | m_duration = durMs; |
| 22 | } |
| 23 | |
| 24 | void QSvgAnimateNode::drawCommand(QPainter *p, QSvgExtraStates &states) |
| 25 | { |
| 26 | Q_UNUSED(p) |
| 27 | Q_UNUSED(states) |
| 28 | } |
| 29 | |
| 30 | bool QSvgAnimateNode::shouldDrawNode(QPainter *p, QSvgExtraStates &states) const |
| 31 | { |
| 32 | Q_UNUSED(p) |
| 33 | Q_UNUSED(states) |
| 34 | return false; |
| 35 | } |
| 36 | |
| 37 | QT_END_NAMESPACE |
| 38 |
