35 QSvgVisitorImpl(
const QString svgFileName, QQuickGenerator *generator,
bool assumeTrustedSource);
39 void visitNode(
const QSvgNode *node)
override;
63 typedef std::pair<
const QSvgAbstractAnimation *,
const QSvgAbstractAnimatedProperty *> AnimationPair;
64 QList<AnimationPair> collectAnimations(
const QSvgNode *node,
const QString &propertyName);
65 void applyAnimationsToProperty(
const QList<AnimationPair> &animations,
66 QQuickAnimatedProperty *property,
67 std::function<QVariant(
const QSvgAbstractAnimatedProperty *,
int index,
int subtype)> calculateValue);
69 void fillCommonNodeInfo(
const QSvgNode *node,
NodeInfo &info,
const QString &idSuffix = QString{});
70 void fillPathAnimationInfo(
const QSvgNode *node,
PathNodeInfo &info);
71 void fillAnimationInfo(
const QSvgNode *node,
NodeInfo &info);
72 void fillColorAnimationInfo(
const QSvgNode *node,
PathNodeInfo &info);
73 void fillTransformAnimationInfo(
const QSvgNode *node,
NodeInfo &info);
74 void handleBaseNodeSetup(
const QSvgNode *node);
75 void handleBaseNode(
const QSvgNode *node);
76 void handleBaseNodeEnd(
const QSvgNode *node);
77 void handlePathNode(
const QSvgNode *node,
const QPainterPath &path);
78 void outputShapePath(QPainterPath pathCopy,
const PathNodeInfo &info);
79 QString nextNodeId()
const;
80 static QString gradientCssDescription(
const QGradient *gradient);
81 static QString colorCssDescription(QColor color);
84 QString m_svgFileName;
85 QQuickGenerator *m_generator;
86 bool m_assumeTrustedSource;
87 mutable int m_nodeIdCounter = 0;
88 QHash<QString, QString> m_idForNodeId;
89 QSet<QString> m_generatedNodes;