Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsvghandler.cpp File Reference

(9ea3e687875c74473150131d70152bb094dfaa60)

#include "qplatformdefs.h"
#include "qsvghandler_p.h"
#include "qsvgtinydocument_p.h"
#include "qsvgstructure_p.h"
#include "qsvggraphics_p.h"
#include "qsvgfilter_p.h"
#include "qsvgnode_p.h"
#include "qsvgfont_p.h"
#include "qpen.h"
#include "qpainterpath.h"
#include "qbrush.h"
#include "qcolor.h"
#include "qtextformat.h"
#include "qlist.h"
#include "qfileinfo.h"
#include "qfile.h"
#include "qdir.h"
#include "qdebug.h"
#include "qmath.h"
#include "qnumeric.h"
#include <qregularexpression.h>
#include "qtransform.h"
#include "qvarlengtharray.h"
#include "private/qmath_p.h"
#include "qimagereader.h"
#include "float.h"
#include <cmath>
+ Include dependency graph for qsvghandler.cpp:

Go to the source code of this file.

Classes

struct  QSvgAttributes
 
class  QSvgStyleSelector
 

Macros

#define QT_INHERIT   QLatin1String(qt_inherit_text)
 
#define NOOP   qDebug()<<"Operation: "<<op<<" is not implemented"
 

Typedefs

typedef QSvgNode *(* FactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)
 
typedef bool(* ParseMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)
 
typedef QSvgStyleProperty *(* StyleFactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)
 
typedef bool(* StyleParseMethod) (QSvgStyleProperty *, const QXmlStreamAttributes &, QSvgHandler *)
 

Enumerations

enum  FontSizeSpec {
  XXSmall , XSmall , Small , Medium ,
  Large , XLarge , XXLarge , FontSizeNone ,
  FontSizeValue
}
 

Functions

static QByteArray prefixMessage (const QByteArray &msg, const QXmlStreamReader *r)
 
static QByteArray msgProblemParsing (const QString &localName, const QXmlStreamReader *r)
 
static QByteArray msgCouldNotResolveProperty (const QString &id, const QXmlStreamReader *r)
 
static int qsvg_h2i (char hex, bool *ok=nullptr)
 
static int qsvg_hex2int (const char *s, bool *ok=nullptr)
 
static int qsvg_hex2int (char s, bool *ok=nullptr)
 
bool qsvg_get_hex_rgb (const char *name, QRgb *rgb)
 
bool qsvg_get_hex_rgb (const QChar *str, int len, QRgb *rgb)
 
static bool parsePathDataFast (QStringView data, QPainterPath &path, bool limitLength=true)
 
static QString someId (const QXmlStreamAttributes &attributes)
 
static bool isDigit (ushort ch)
 
static qreal toDouble (const QChar *&str)
 
static qreal toDouble (QStringView str, bool *ok=NULL)
 
static QList< qrealparseNumbersList (const QChar *&str)
 
static void parseNumbersArray (const QChar *&str, QVarLengthArray< qreal, 8 > &points, const char *pattern=nullptr)
 
static QList< qrealparsePercentageList (const QChar *&str)
 
static QString idFromUrl (const QString &url)
 
static bool resolveColor (QStringView colorStr, QColor &color, QSvgHandler *handler)
 
static bool constructColor (QStringView colorStr, QStringView opacity, QColor &color, QSvgHandler *handler)
 
static qreal parseLength (QStringView str, QSvgHandler::LengthType *type, QSvgHandler *handler, bool *ok=NULL)
 
static qreal convertToNumber (QStringView str, QSvgHandler *handler, bool *ok=NULL)
 
static bool createSvgGlyph (QSvgFont *font, const QXmlStreamAttributes &attributes)
 
static qreal convertToPixels (qreal len, bool, QSvgHandler::LengthType type)
 
static void parseColor (QSvgNode *, const QSvgAttributes &attributes, QSvgHandler *handler)
 
static QSvgStylePropertystyleFromUrl (QSvgNode *node, const QString &url)
 
static void parseBrush (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *handler)
 
static QTransform parseTransformationMatrix (QStringView value)
 
static void parsePen (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *handler)
 
 Q_STATIC_ASSERT (sizeof(sizeTable)/sizeof(sizeTable[0])==FontSizeNone)
 
static FontSizeSpec fontSizeSpec (QStringView spec)
 
static void parseFont (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *handler)
 
static void parseTransform (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static void parseVisibility (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static void pathArcSegment (QPainterPath &path, qreal xc, qreal yc, qreal th0, qreal th1, qreal rx, qreal ry, qreal xAxisRotation)
 
static void pathArc (QPainterPath &path, qreal rx, qreal ry, qreal x_axis_rotation, int large_arc_flag, int sweep_flag, qreal x, qreal y, qreal curx, qreal cury)
 
static bool parseStyle (QSvgNode *node, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseStyle (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static void parseCSStoXMLAttrs (const QList< QCss::Declaration > &declarations, QXmlStreamAttributes &attributes)
 
static void cssStyleLookup (QSvgNode *node, QSvgHandler *handler, QSvgStyleSelector *selector, QXmlStreamAttributes &attributes)
 
static void cssStyleLookup (QSvgNode *node, QSvgHandler *handler, QSvgStyleSelector *selector)
 
static QStringList stringToList (const QString &str)
 
static bool parseCoreNode (QSvgNode *node, const QXmlStreamAttributes &attributes)
 
static void parseOpacity (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static QPainter::CompositionMode svgToQtCompositionMode (const QString &op)
 
static void parseCompOp (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static QSvgNode::DisplayMode displayStringToEnum (const QString &str)
 
static void parseOthers (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static void parseExtendedAttributes (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *handler)
 
static void parseRenderingHints (QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *)
 
static bool parseAnchorNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseAnimateNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static int parseClockValue (QStringView str, bool *ok)
 
static bool parseAnimateColorNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseAimateMotionNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static void parseNumberTriplet (QList< qreal > &values, const QChar *&s)
 
static bool parseAnimateTransformNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateAnimationNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseAudioNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreateCircleNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreateDefsNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseDiscardNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreateEllipseNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgStylePropertycreateFontNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseFontFaceNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseFontFaceNameNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseFontFaceSrcNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseFontFaceUriNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseForeignObjectNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreateGNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseGlyphNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseHandlerNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseHkernNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreateImageNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateLineNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static void parseBaseGradient (QSvgNode *node, const QXmlStreamAttributes &attributes, QSvgGradientStyle *gradProp, QSvgHandler *handler)
 
static QSvgStylePropertycreateLinearGradientNode (QSvgNode *node, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseMetadataNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseMissingGlyphNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseMpathNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseMaskNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseMarkerNode (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)
 
static QSvgNodecreateMaskNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static void parseFilterBounds (QSvgNode *, const QXmlStreamAttributes &attributes, QSvgHandler *handler, QSvgRectF *rect)
 
static QSvgNodecreateFilterNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static void parseFilterAttributes (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler, QString *inString, QString *outString, QSvgRectF *rect)
 
static QSvgNodecreateFeColorMatrixNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeGaussianBlurNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeOffsetNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeCompositeNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeMergeNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeFloodNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeMergeNodeNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateFeUnsupportedNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseSymbolLikeAttributes (const QXmlStreamAttributes &attributes, QSvgHandler *handler, QRectF *rect, QRectF *viewBox, QPointF *refPoint, QSvgSymbolLike::PreserveAspectRatios *aspect, QSvgSymbolLike::Overflow *overflow, bool marker=false)
 
static QSvgNodecreateSymbolNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateMarkerNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreatePathNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreatePolygonNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreatePolylineNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parsePrefetchNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgStylePropertycreateRadialGradientNode (QSvgNode *node, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateRectNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseScriptNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static bool parseSetNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgStylePropertycreateSolidColorNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseStopNode (QSvgStyleProperty *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseStyleNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateSvgNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateSwitchNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static QSvgNodecreatePatternNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static bool parseTbreakNode (QSvgNode *parent, const QXmlStreamAttributes &, QSvgHandler *)
 
static QSvgNodecreateTextNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateTextAreaNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateTspanNode (QSvgNode *parent, const QXmlStreamAttributes &, QSvgHandler *)
 
static QSvgNodecreateUseNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
 
static QSvgNodecreateVideoNode (QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *)
 
static FactoryMethod findGroupFactory (const QString &name, QtSvg::Options options)
 
static FactoryMethod findGraphicsFactory (const QString &name, QtSvg::Options options)
 
static FactoryMethod findFilterFactory (const QString &name, QtSvg::Options options)
 
static ParseMethod findUtilFactory (const QString &name, QtSvg::Options options)
 
static StyleFactoryMethod findStyleFactoryMethod (const QString &name)
 
static StyleParseMethod findStyleUtilFactoryMethod (const QString &name)
 
static bool detectPatternCycles (const QSvgNode *node, QList< const QSvgNode * > active={})
 
static bool detectCycles (const QSvgNode *node, QList< const QSvgNode * > active={})
 

Variables

static QT_BEGIN_NAMESPACE const char * qt_inherit_text = "inherit"
 
static const qreal sizeTable []
 
static const int unfinishedElementsLimit = 2048
 

Macro Definition Documentation

◆ NOOP

#define NOOP   qDebug()<<"Operation: "<<op<<" is not implemented"

◆ QT_INHERIT

#define QT_INHERIT   QLatin1String(qt_inherit_text)

Typedef Documentation

◆ FactoryMethod

typedef QSvgNode *(* FactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)

Definition at line 4249 of file qsvghandler.cpp.

◆ ParseMethod

typedef bool(* ParseMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)

Definition at line 4376 of file qsvghandler.cpp.

◆ StyleFactoryMethod

typedef QSvgStyleProperty *(* StyleFactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *)

Definition at line 4426 of file qsvghandler.cpp.

◆ StyleParseMethod

typedef bool(* StyleParseMethod) (QSvgStyleProperty *, const QXmlStreamAttributes &, QSvgHandler *)

Definition at line 4455 of file qsvghandler.cpp.

Enumeration Type Documentation

◆ FontSizeSpec

Enumerator
XXSmall 
XSmall 
Small 
Medium 
Large 
XLarge 
XXLarge 
FontSizeNone 
FontSizeValue 

Definition at line 1299 of file qsvghandler.cpp.

Function Documentation

◆ constructColor()

static bool constructColor ( QStringView colorStr,
QStringView opacity,
QColor & color,
QSvgHandler * handler )
static

Definition at line 876 of file qsvghandler.cpp.

References QStringView::isEmpty(), ok, qMax(), qMin(), resolveColor(), and toDouble().

Referenced by createFeFloodNode(), createSolidColorNode(), parseBaseGradient(), parseColor(), and parseStopNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convertToNumber()

static qreal convertToNumber ( QStringView str,
QSvgHandler * handler,
bool * ok = NULL )
inlinestatic

Definition at line 932 of file qsvghandler.cpp.

References QSvgHandler::LT_PERCENT, ok, parseLength(), and str.

Referenced by createLinearGradientNode(), createPatternNode(), and parseStopNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convertToPixels()

static qreal convertToPixels ( qreal len,
bool ,
QSvgHandler::LengthType type )
static

Definition at line 961 of file qsvghandler.cpp.

References QSvgHandler::LT_CM, QSvgHandler::LT_IN, QSvgHandler::LT_MM, QSvgHandler::LT_OTHER, QSvgHandler::LT_PC, QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, and QSvgHandler::LT_PX.

Referenced by createFeOffsetNode(), createImageNode(), createMaskNode(), createPatternNode(), createRectNode(), createSvgNode(), createTextNode(), createUseNode(), parseFilterBounds(), parseFont(), and parseSymbolLikeAttributes().

+ Here is the caller graph for this function:

◆ createAnimationNode()

static QSvgNode * createAnimationNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2637 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findGraphicsFactory().

+ Here is the caller graph for this function:

◆ createCircleNode()

static QSvgNode * createCircleNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2653 of file qsvghandler.cpp.

References rect, and toDouble().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createDefsNode()

static QSvgNode * createDefsNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2671 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findGroupFactory().

+ Here is the caller graph for this function:

◆ createEllipseNode()

static QSvgNode * createEllipseNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2688 of file qsvghandler.cpp.

References ellipse, rect, rx(), ry(), and toDouble().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeColorMatrixNode()

static QSvgNode * createFeColorMatrixNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3263 of file qsvghandler.cpp.

References QGenericMatrix< N, M, T >::fill(), QSvgFeColorMatrix::HueRotate, i, j, QSvgFeColorMatrix::LuminanceToAlpha, QSvgFeColorMatrix::Matrix, ok, parseFilterAttributes(), qMin(), rect, QSvgFeColorMatrix::Saturate, Qt::SkipEmptyParts, and toDouble().

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeCompositeNode()

static QSvgNode * createFeCompositeNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3380 of file qsvghandler.cpp.

References QSvgFeComposite::Arithmetic, QSvgFeComposite::Atop, QSvgFeComposite::In, QSvgFeComposite::Lighter, ok, QSvgFeComposite::Out, QSvgFeComposite::Over, parseFilterAttributes(), QStringLiteral, rect, QVector4D::setW(), QVector4D::setX(), QVector4D::setY(), QVector4D::setZ(), toDouble(), and QSvgFeComposite::Xor.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeFloodNode()

static QSvgNode * createFeFloodNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3451 of file qsvghandler.cpp.

References Qt::black, constructColor(), parseFilterAttributes(), and rect.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeGaussianBlurNode()

static QSvgNode * createFeGaussianBlurNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3311 of file qsvghandler.cpp.

References QSvgFeGaussianBlur::Duplicate, QSvgFeGaussianBlur::None, parseFilterAttributes(), qMax(), QStringLiteral, rect, toDouble(), and QSvgFeGaussianBlur::Wrap.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeMergeNode()

static QSvgNode * createFeMergeNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3436 of file qsvghandler.cpp.

References parseFilterAttributes(), and rect.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeMergeNodeNode()

static QSvgNode * createFeMergeNodeNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3473 of file qsvghandler.cpp.

References parseFilterAttributes(), and rect.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeOffsetNode()

static QSvgNode * createFeOffsetNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3345 of file qsvghandler.cpp.

References convertToPixels(), QSvgHandler::LT_PT, parseFilterAttributes(), parseLength(), and rect.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFeUnsupportedNode()

static QSvgNode * createFeUnsupportedNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3488 of file qsvghandler.cpp.

References parseFilterAttributes(), and rect.

Referenced by findFilterFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFilterNode()

static QSvgNode * createFilterNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3233 of file qsvghandler.cpp.

References QtSvg::objectBoundingBox, parseFilterBounds(), rect, and QtSvg::userSpaceOnUse.

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFontNode()

static QSvgStyleProperty * createFontNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2706 of file qsvghandler.cpp.

References QSvgTinyDocument::addSvgFont(), QSvgNode::Doc, font, QSvgNode::parent(), someId(), QSvgTinyDocument::svgFont(), toDouble(), and QSvgNode::type().

Referenced by findStyleFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createGNode()

static QSvgNode * createGNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2806 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findGroupFactory().

+ Here is the caller graph for this function:

◆ createImageNode()

static QSvgNode * createImageNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2845 of file qsvghandler.cpp.

References convertToPixels(), QSvgHandler::device(), file, QFile::fileName(), QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QByteArray::fromBase64(), QImage::fromData(), QImageReader::imageFormat(), info, QString::isEmpty(), QUrl::isRelative(), QString::lastIndexOf(), QString::mid(), parseLength(), qCWarning, QString::startsWith(), toDouble(), QString::trimmed(), QSvgHandler::trustedSourceMode(), and url.

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createLinearGradientNode()

static QSvgStyleProperty * createLinearGradientNode ( QSvgNode * node,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3005 of file qsvghandler.cpp.

References QGradient::ComponentInterpolation, convertToNumber(), QSvgNode::Doc, QSvgNode::parent(), parseBaseGradient(), and QGradient::setInterpolationMode().

Referenced by findStyleFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createLineNode()

static QSvgNode * createLineNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2925 of file qsvghandler.cpp.

References line, and toDouble().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMarkerNode()

static QSvgNode * createMarkerNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3660 of file qsvghandler.cpp.

References QSvgMarker::Auto, QSvgMarker::AutoStartReverse, M_PI, ok, parseSymbolLikeAttributes(), QStringLiteral, rect, QSvgMarker::StrokeWidth, toDouble(), QSvgMarker::UserSpaceOnUse, and QSvgMarker::Value.

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMaskNode()

static QSvgNode * createMaskNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3086 of file qsvghandler.cpp.

References convertToPixels(), QSvgNode::document(), QRectF::height(), QRectF::isEmpty(), QSvgHandler::LT_PERCENT, QtSvg::objectBoundingBox, ok, parseLength(), QtSvg::userSpaceOnUse, QSvgTinyDocument::viewBox(), and QRectF::width().

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPathNode()

static QSvgNode * createPathNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3706 of file qsvghandler.cpp.

References parsePathDataFast(), qCWarning, QPainterPath::setFillRule(), QSvgHandler::trustedSourceMode(), and Qt::WindingFill.

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPatternNode()

static QSvgNode * createPatternNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 4040 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), QString::at(), convertToNumber(), convertToPixels(), QSvgHandler::document(), QRectF::height(), QRectF::isEmpty(), QSvgHandler::LT_PERCENT, QtSvg::objectBoundingBox, ok, parseLength(), parseTransformationMatrix(), QRectF::setRect(), Qt::SkipEmptyParts, someId(), QtSvg::userSpaceOnUse, QSvgTinyDocument::viewBox(), and QRectF::width().

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPolygonNode()

static QSvgNode * createPolygonNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3721 of file qsvghandler.cpp.

References i, and parseNumbersList().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPolylineNode()

static QSvgNode * createPolylineNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3737 of file qsvghandler.cpp.

References i, line, and parseNumbersList().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRadialGradientNode()

static QSvgStyleProperty * createRadialGradientNode ( QSvgNode * node,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3762 of file qsvghandler.cpp.

References QGradient::ComponentInterpolation, QStringView::isEmpty(), parseBaseGradient(), QGradient::setInterpolationMode(), and toDouble().

Referenced by findStyleFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRectNode()

static QSvgNode * createRectNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3801 of file qsvghandler.cpp.

References convertToPixels(), QRectF::height(), QRectF::isEmpty(), ok, parseLength(), rect, rx(), ry(), toDouble(), and QRectF::width().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSolidColorNode()

static QSvgStyleProperty * createSolidColorNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3868 of file qsvghandler.cpp.

References constructColor(), and Q_UNUSED.

Referenced by findStyleFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSvgGlyph()

static bool createSvgGlyph ( QSvgFont * font,
const QXmlStreamAttributes & attributes )
static

Definition at line 942 of file qsvghandler.cpp.

References font, parsePathDataFast(), toDouble(), and Qt::WindingFill.

Referenced by parseGlyphNode(), and parseMissingGlyphNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSvgNode()

static QSvgNode * createSvgNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3970 of file qsvghandler.cpp.

References QString::at(), convertToPixels(), QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, QSvgHandler::LT_PX, QSvgHandler::options(), parseLength(), Q_UNUSED, QSvgHandler::setDefaultCoordinateSystem(), QSvgTinyDocument::setHeight(), QSvgTinyDocument::setViewBox(), QSvgTinyDocument::setWidth(), and Qt::SkipEmptyParts.

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSwitchNode()

static QSvgNode * createSwitchNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 4031 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findGroupFactory().

+ Here is the caller graph for this function:

◆ createSymbolNode()

static QSvgNode * createSymbolNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3643 of file qsvghandler.cpp.

References parseSymbolLikeAttributes(), and rect.

Referenced by findGroupFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTextAreaNode()

static QSvgNode * createTextAreaNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 4169 of file qsvghandler.cpp.

References createTextNode(), parseLength(), and QSvgText::setTextArea().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTextNode()

static QSvgNode * createTextNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 4152 of file qsvghandler.cpp.

References convertToPixels(), parseLength(), and text.

Referenced by createTextAreaNode(), and findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTspanNode()

static QSvgNode * createTspanNode ( QSvgNode * parent,
const QXmlStreamAttributes & ,
QSvgHandler *  )
static

Definition at line 4183 of file qsvghandler.cpp.

Referenced by findGraphicsFactory().

+ Here is the caller graph for this function:

◆ createUseNode()

static QSvgNode * createUseNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 4190 of file qsvghandler.cpp.

References convertToPixels(), QSvgNode::Defs, QSvgNode::Doc, QSvgNode::Group, QSvgNode::isDescendantOf(), QString::isEmpty(), QSvgNode::Mask, parseLength(), qCWarning, qPrintable, QSvgNode::Switch, and QSvgNode::type().

Referenced by findGraphicsFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createVideoNode()

static QSvgNode * createVideoNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 4241 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findGraphicsFactory().

+ Here is the caller graph for this function:

◆ cssStyleLookup() [1/2]

static void cssStyleLookup ( QSvgNode * node,
QSvgHandler * handler,
QSvgStyleSelector * selector )
static

Definition at line 2076 of file qsvghandler.cpp.

References cssStyleLookup(), and selector.

+ Here is the call graph for this function:

◆ cssStyleLookup() [2/2]

static void cssStyleLookup ( QSvgNode * node,
QSvgHandler * handler,
QSvgStyleSelector * selector,
QXmlStreamAttributes & attributes )
static

Definition at line 2063 of file qsvghandler.cpp.

References parseCSStoXMLAttrs(), parseStyle(), QCss::StyleSelector::NodePtr::ptr, and selector.

Referenced by cssStyleLookup(), parseStopNode(), and QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ detectCycles()

static bool detectCycles ( const QSvgNode * node,
QList< const QSvgNode * > active = {} )
static

Definition at line 4543 of file qsvghandler.cpp.

◆ detectPatternCycles()

static bool detectPatternCycles ( const QSvgNode * node,
QList< const QSvgNode * > active = {} )
static

Definition at line 4522 of file qsvghandler.cpp.

◆ displayStringToEnum()

◆ findFilterFactory()

static FactoryMethod findFilterFactory ( const QString & name,
QtSvg::Options options )
static

Definition at line 4333 of file qsvghandler.cpp.

References createFeColorMatrixNode(), createFeCompositeNode(), createFeFloodNode(), createFeGaussianBlurNode(), createFeMergeNode(), createFeMergeNodeNode(), createFeOffsetNode(), createFeUnsupportedNode(), QStringLiteral, and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findGraphicsFactory()

static FactoryMethod findGraphicsFactory ( const QString & name,
QtSvg::Options options )
static

Definition at line 4285 of file qsvghandler.cpp.

References createAnimationNode(), createCircleNode(), createEllipseNode(), createImageNode(), createLineNode(), createPathNode(), createPolygonNode(), createPolylineNode(), createRectNode(), createTextAreaNode(), createTextNode(), createTspanNode(), createUseNode(), createVideoNode(), QStringView::mid(), and Q_UNUSED.

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findGroupFactory()

static FactoryMethod findGroupFactory ( const QString & name,
QtSvg::Options options )
static

Definition at line 4251 of file qsvghandler.cpp.

References createDefsNode(), createFilterNode(), createGNode(), createMarkerNode(), createMaskNode(), createPatternNode(), createSvgNode(), createSwitchNode(), createSymbolNode(), QStringView::mid(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findStyleFactoryMethod()

static StyleFactoryMethod findStyleFactoryMethod ( const QString & name)
static

Definition at line 4430 of file qsvghandler.cpp.

References createFontNode(), createLinearGradientNode(), createRadialGradientNode(), createSolidColorNode(), and QStringView::mid().

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findStyleUtilFactoryMethod()

static StyleParseMethod findStyleUtilFactoryMethod ( const QString & name)
static

Definition at line 4459 of file qsvghandler.cpp.

References QStringView::mid(), parseFontFaceNameNode(), parseFontFaceNode(), parseFontFaceSrcNode(), parseFontFaceUriNode(), parseGlyphNode(), parseMissingGlyphNode(), and parseStopNode().

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findUtilFactory()

static ParseMethod findUtilFactory ( const QString & name,
QtSvg::Options options )
static

Definition at line 4378 of file qsvghandler.cpp.

References QStringView::mid(), parseAimateMotionNode(), parseAnchorNode(), parseAnimateColorNode(), parseAnimateNode(), parseAnimateTransformNode(), parseAudioNode(), parseDiscardNode(), parseForeignObjectNode(), parseHandlerNode(), parseHkernNode(), parseMarkerNode(), parseMaskNode(), parseMetadataNode(), parseMpathNode(), parsePrefetchNode(), parseScriptNode(), parseSetNode(), parseStyleNode(), parseTbreakNode(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fontSizeSpec()

static FontSizeSpec fontSizeSpec ( QStringView spec)
static

Definition at line 1307 of file qsvghandler.cpp.

References QStringView::at(), FontSizeNone, FontSizeValue, Large, Medium, Small, XLarge, XSmall, XXLarge, and XXSmall.

Referenced by parseFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ idFromUrl()

static QString idFromUrl ( const QString & url)
static

Definition at line 777 of file qsvghandler.cpp.

References url.

Referenced by parseBrush(), parseExtendedAttributes(), parsePen(), and styleFromUrl().

+ Here is the caller graph for this function:

◆ isDigit()

static bool isDigit ( ushort ch)
inlinestatic

Definition at line 592 of file qsvghandler.cpp.

References ch, and magic.

Referenced by parseNumbersArray(), parseNumbersList(), and toDouble().

+ Here is the caller graph for this function:

◆ msgCouldNotResolveProperty()

static QByteArray msgCouldNotResolveProperty ( const QString & id,
const QXmlStreamReader * r )
inlinestatic

Definition at line 68 of file qsvghandler.cpp.

References prefixMessage(), QByteArrayLiteral, and toLocal8Bit().

+ Here is the call graph for this function:

◆ msgProblemParsing()

static QByteArray msgProblemParsing ( const QString & localName,
const QXmlStreamReader * r )
inlinestatic

Definition at line 63 of file qsvghandler.cpp.

References prefixMessage(), QByteArrayLiteral, and QString::toLocal8Bit().

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAimateMotionNode()

static bool parseAimateMotionNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2524 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseAnchorNode()

static bool parseAnchorNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2434 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseAnimateColorNode()

static bool parseAnimateColorNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2471 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), begin(), colors, QString::constBegin(), QString::constEnd(), QSvgNode::document(), ok, parseClockValue(), resolveColor(), QSvgTinyDocument::setAnimated(), QSvgHandler::setAnimPeriod(), QSvgAnimateColor::setArgs(), QSvgAnimateColor::setFreeze(), QSvgAnimateColor::setRepeatCount(), QString::size(), someId(), QString::split(), str, and toDouble().

Referenced by findUtilFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAnimateNode()

static bool parseAnimateNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2442 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseAnimateTransformNode()

static bool parseAnimateTransformNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2540 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), begin(), QString::constData(), QSvgNode::document(), QSvgAnimateTransform::Empty, i, QString::isEmpty(), ok, parseClockValue(), parseNumberTriplet(), QSvgAnimateTransform::Replace, QSvgAnimateTransform::Rotate, QSvgAnimateTransform::Scale, QSvgTinyDocument::setAnimated(), QSvgHandler::setAnimPeriod(), QSvgAnimateTransform::setArgs(), QSvgAnimateTransform::setFreeze(), QSvgAnimateTransform::setRepeatCount(), QSvgAnimateTransform::SkewX, QSvgAnimateTransform::SkewY, someId(), QSvgAnimateTransform::Sum, toDouble(), QSvgAnimateTransform::Translate, and typeStr().

Referenced by findUtilFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAudioNode()

static bool parseAudioNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2645 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseBaseGradient()

static void parseBaseGradient ( QSvgNode * node,
const QXmlStreamAttributes & attributes,
QSvgGradientStyle * gradProp,
QSvgHandler * handler )
static

Definition at line 2944 of file qsvghandler.cpp.

References constructColor(), QSvgHandler::document(), QSvgStyleProperty::GRADIENT, QString::isEmpty(), QStringView::isEmpty(), QGradient::ObjectMode, QGradient::PadSpread, parseTransformationMatrix(), QSvgHandler::popColor(), QSvgHandler::pushColor(), QGradient::ReflectSpread, QGradient::RepeatSpread, QGradient::setCoordinateMode(), QGradient::setSpread(), QSvgGradientStyle::setStopLink(), QGradient::setStops(), QSvgNode::styleProperty(), and QSvgStyleProperty::type().

Referenced by createLinearGradientNode(), and createRadialGradientNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseBrush()

static void parseBrush ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

◆ parseClockValue()

static int parseClockValue ( QStringView str,
bool * ok )
static

Definition at line 2450 of file qsvghandler.cpp.

References QString::chop(), QString::endsWith(), ok, str, toDouble(), and QString::trimmed().

Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseColor()

static void parseColor ( QSvgNode * ,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 991 of file qsvghandler.cpp.

References QSvgAttributes::color, QSvgAttributes::colorOpacity, constructColor(), QSvgHandler::popColor(), and QSvgHandler::pushColor().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseCompOp()

static void parseCompOp ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2230 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), QSvgAttributes::compOp, QSvgAttributes::id, QStringView::isEmpty(), svgToQtCompositionMode(), QStringView::toString(), and QString::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseCoreNode()

static bool parseCoreNode ( QSvgNode * node,
const QXmlStreamAttributes & attributes )
static

Definition at line 2103 of file qsvghandler.cpp.

References i, QSvgNode::setNodeId(), QSvgNode::setRequiredExtensions(), QSvgNode::setRequiredFeatures(), QSvgNode::setRequiredFonts(), QSvgNode::setRequiredFormats(), QSvgNode::setRequiredLanguages(), QSvgNode::setXmlClass(), someId(), stringToList(), and QStringView::toString().

Referenced by QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseCSStoXMLAttrs()

static void parseCSStoXMLAttrs ( const QList< QCss::Declaration > & declarations,
QXmlStreamAttributes & attributes )
static

Definition at line 1945 of file qsvghandler.cpp.

References QString::append(), QCss::Declaration::d, QCss::Value::Function, i, QCss::Value::KnownIdentifier, QString::prepend(), QCss::Value::Uri, and QCss::Value_None.

Referenced by cssStyleLookup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseDiscardNode()

static bool parseDiscardNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2680 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseExtendedAttributes()

static void parseExtendedAttributes ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2299 of file qsvghandler.cpp.

References QSvgAttributes::filter, idFromUrl(), QStringView::isEmpty(), QSvgAttributes::markerEnd, QSvgAttributes::markerMid, QSvgAttributes::markerStart, QSvgAttributes::mask, QString::mid(), QSvgHandler::options(), QString::remove(), QSvgNode::setFilterId(), QSvgNode::setMarkerEndId(), QSvgNode::setMarkerMidId(), QSvgNode::setMarkerStartId(), QSvgNode::setMaskId(), QString::startsWith(), QtSvg::Tiny12FeaturesOnly, QStringView::toString(), and QString::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFilterAttributes()

static void parseFilterAttributes ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler,
QString * inString,
QString * outString,
QSvgRectF * rect )
static

Definition at line 3253 of file qsvghandler.cpp.

References parseFilterBounds(), and rect.

Referenced by createFeColorMatrixNode(), createFeCompositeNode(), createFeFloodNode(), createFeGaussianBlurNode(), createFeMergeNode(), createFeMergeNodeNode(), createFeOffsetNode(), and createFeUnsupportedNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFilterBounds()

static void parseFilterBounds ( QSvgNode * ,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler,
QSvgRectF * rect )
static

Definition at line 3163 of file qsvghandler.cpp.

References convertToPixels(), QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, QtSvg::objectBoundingBox, parseLength(), and rect.

Referenced by createFilterNode(), and parseFilterAttributes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFont()

static void parseFont ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

◆ parseFontFaceNameNode()

static bool parseFontFaceNameNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2760 of file qsvghandler.cpp.

References QSvgTinyDocument::addSvgFont(), QSvgFontStyle::doc(), font, QSvgStyleProperty::FONT, QSvgFontStyle::svgFont(), QSvgTinyDocument::svgFont(), toString(), and QSvgStyleProperty::type().

Referenced by findStyleUtilFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFontFaceNode()

static bool parseFontFaceNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2732 of file qsvghandler.cpp.

References QSvgTinyDocument::addSvgFont(), QSvgFont::DEFAULT_UNITS_PER_EM, QSvgFontStyle::doc(), font, QSvgStyleProperty::FONT, QSvgFontStyle::svgFont(), QSvgTinyDocument::svgFont(), toDouble(), toString(), and QSvgStyleProperty::type().

Referenced by findStyleUtilFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFontFaceSrcNode()

static bool parseFontFaceSrcNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2782 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findStyleUtilFactoryMethod().

+ Here is the caller graph for this function:

◆ parseFontFaceUriNode()

static bool parseFontFaceUriNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2790 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findStyleUtilFactoryMethod().

+ Here is the caller graph for this function:

◆ parseForeignObjectNode()

static bool parseForeignObjectNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2798 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseGlyphNode()

static bool parseGlyphNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2815 of file qsvghandler.cpp.

References createSvgGlyph(), font, QSvgStyleProperty::FONT, QSvgFontStyle::svgFont(), and QSvgStyleProperty::type().

Referenced by findStyleUtilFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseHandlerNode()

static bool parseHandlerNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2829 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseHkernNode()

static bool parseHkernNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2837 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseLength()

static qreal parseLength ( QStringView str,
QSvgHandler::LengthType * type,
QSvgHandler * handler,
bool * ok = NULL )
static

Definition at line 891 of file qsvghandler.cpp.

References QString::chop(), QSvgHandler::defaultCoordinateSystem(), QSvgHandler::LT_CM, QSvgHandler::LT_IN, QSvgHandler::LT_MM, QSvgHandler::LT_OTHER, QSvgHandler::LT_PC, QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, QSvgHandler::LT_PX, ok, str, toDouble(), and QString::trimmed().

Referenced by convertToNumber(), createFeOffsetNode(), createImageNode(), createMaskNode(), createPatternNode(), createRectNode(), createSvgNode(), createTextAreaNode(), createTextNode(), createUseNode(), parseFilterBounds(), parseFont(), parsePen(), and parseSymbolLikeAttributes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseMarkerNode()

static bool parseMarkerNode ( QSvgNode * ,
const QXmlStreamAttributes & ,
QSvgHandler *  )
static

Definition at line 3079 of file qsvghandler.cpp.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseMaskNode()

static bool parseMaskNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3071 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseMetadataNode()

static bool parseMetadataNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3041 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseMissingGlyphNode()

static bool parseMissingGlyphNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3049 of file qsvghandler.cpp.

References createSvgGlyph(), font, QSvgStyleProperty::FONT, QSvgFontStyle::svgFont(), and QSvgStyleProperty::type().

Referenced by findStyleUtilFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseMpathNode()

static bool parseMpathNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3063 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseNumbersArray()

static void parseNumbersArray ( const QChar *& str,
QVarLengthArray< qreal, 8 > & points,
const char * pattern = nullptr )
inlinestatic

Definition at line 715 of file qsvghandler.cpp.

References QString::append(), isDigit(), qstrlen(), str, toDouble(), and QString::unicode().

Referenced by parsePathDataFast(), and parseTransformationMatrix().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseNumbersList()

static QList< qreal > parseNumbersList ( const QChar *& str)
static

Definition at line 687 of file qsvghandler.cpp.

References QString::append(), isDigit(), str, toDouble(), and QString::unicode().

Referenced by createPolygonNode(), createPolylineNode(), parseNumberTriplet(), parsePen(), and resolveColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseNumberTriplet()

static void parseNumberTriplet ( QList< qreal > & values,
const QChar *& s )
static

Definition at line 2532 of file qsvghandler.cpp.

References QList< T >::append(), i, list, parseNumbersList(), and QList< T >::size().

Referenced by parseAnimateTransformNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseOpacity()

static void parseOpacity ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2154 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QStringView::isEmpty(), ok, QSvgAttributes::opacity, qBound(), QStringView::toDouble(), and QStringView::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseOthers()

static void parseOthers ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2286 of file qsvghandler.cpp.

References QSvgAttributes::display, displayStringToEnum(), QStringView::isEmpty(), QSvgNode::setDisplayMode(), QStringView::toString(), and QString::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePathDataFast()

static bool parsePathDataFast ( QStringView data,
QPainterPath & path,
bool limitLength = true )
static

Definition at line 1607 of file qsvghandler.cpp.

References arg, c2, QString::constData(), ok, parseNumbersArray(), pathArc(), rx(), ry(), QString::size(), str, QPointF::x(), and QPointF::y().

Referenced by createPathNode(), and createSvgGlyph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePen()

static void parsePen ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 1185 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), Qt::BevelJoin, Qt::FlatCap, QSvgStyleProperty::GRADIENT, QSvgAttributes::id, idFromUrl(), QStringView::isEmpty(), QStringView::mid(), Qt::NoBrush, parseLength(), parseNumbersList(), QSvgStyleProperty::PATTERN, qMax(), qMin(), QT_INHERIT, resolveColor(), Qt::RoundCap, Qt::RoundJoin, QSvgStrokeStyle::setDashArray(), QSvgStrokeStyle::setDashArrayNone(), QSvgStrokeStyle::setDashOffset(), QSvgStrokeStyle::setLineCap(), QSvgStrokeStyle::setLineJoin(), QSvgStrokeStyle::setMiterLimit(), QSvgStrokeStyle::setOpacity(), QSvgStrokeStyle::setPaintStyleId(), QSvgStrokeStyle::setPaintStyleResolved(), QSvgStrokeStyle::setStroke(), QSvgStrokeStyle::setStyle(), QSvgStrokeStyle::setVectorEffect(), QSvgStrokeStyle::setWidth(), QStringView::size(), QSvgStyleProperty::SOLID_COLOR, Qt::SquareCap, QSvgAttributes::stroke, QSvgAttributes::strokeDashArray, QSvgAttributes::strokeDashOffset, QSvgAttributes::strokeLineCap, QSvgAttributes::strokeLineJoin, QSvgAttributes::strokeMiterLimit, QSvgAttributes::strokeOpacity, QSvgAttributes::strokeWidth, styleFromUrl(), Qt::SvgMiterJoin, toDouble(), QStringView::toString(), QSvgStyleProperty::type(), and QSvgAttributes::vectorEffect.

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePercentageList()

static QList< qreal > parsePercentageList ( const QChar *& str)
static

Definition at line 746 of file qsvghandler.cpp.

References QString::append(), str, and toDouble().

Referenced by resolveColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePrefetchNode()

static bool parsePrefetchNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3754 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseRenderingHints()

static void parseRenderingHints ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 2362 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QSvgAttributes::imageRendering, QSvgQualityStyle::ImageRenderingAuto, QSvgQualityStyle::ImageRenderingOptimizeQuality, QSvgQualityStyle::ImageRenderingOptimizeSpeed, QStringView::isEmpty(), QStringView::toString(), and QString::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseScriptNode()

static bool parseScriptNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3852 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseSetNode()

static bool parseSetNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler *  )
static

Definition at line 3860 of file qsvghandler.cpp.

References Q_UNUSED.

Referenced by findUtilFactory().

+ Here is the caller graph for this function:

◆ parseStopNode()

static bool parseStopNode ( QSvgStyleProperty * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3886 of file qsvghandler.cpp.

References QList< T >::at(), attrs, QList< T >::back(), black, constructColor(), convertToNumber(), cssStyleLookup(), QString::fromLatin1(), QSvgStyleProperty::GRADIENT, QSvgGradientStyle::gradientStopsSet(), ok, parseStyle(), QSvgGradientStyle::qgradient(), qMax(), qMin(), QSvgHandler::selector(), QGradient::setColorAt(), QSvgGradientStyle::setGradientStopsSet(), QSvgNode::setNodeId(), QGradient::setStops(), QSvgNode::setXmlClass(), QList< T >::size(), someId(), QGradient::stops(), and QSvgStyleProperty::type().

Referenced by findStyleUtilFactoryMethod().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseStyle() [1/2]

static bool parseStyle ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2381 of file qsvghandler.cpp.

References parseBrush(), parseColor(), parseCompOp(), parseExtendedAttributes(), parseFont(), parseOpacity(), parseOthers(), parsePen(), parseRenderingHints(), parseTransform(), and parseVisibility().

+ Here is the call graph for this function:

◆ parseStyle() [2/2]

static bool parseStyle ( QSvgNode * node,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 2427 of file qsvghandler.cpp.

References attrs, and parseStyle().

Referenced by cssStyleLookup(), parseStopNode(), parseStyle(), and QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseStyleNode()

static bool parseStyleNode ( QSvgNode * parent,
const QXmlStreamAttributes & attributes,
QSvgHandler * handler )
static

Definition at line 3953 of file qsvghandler.cpp.

References Qt::CaseInsensitive, Q_UNUSED, and QSvgHandler::setInStyle().

Referenced by findUtilFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseSymbolLikeAttributes()

static bool parseSymbolLikeAttributes ( const QXmlStreamAttributes & attributes,
QSvgHandler * handler,
QRectF * rect,
QRectF * viewBox,
QPointF * refPoint,
QSvgSymbolLike::PreserveAspectRatios * aspect,
QSvgSymbolLike::Overflow * overflow,
bool marker = false )
static

Definition at line 3503 of file qsvghandler.cpp.

References QString::at(), QSvgSymbolLike::Auto, convertToPixels(), QSvgHandler::document(), QSvgSymbolLike::Hidden, QRectF::isNull(), QSvgHandler::LT_PT, QSvgSymbolLike::meet, QSvgSymbolLike::None, parseLength(), rect, QSvgSymbolLike::Scroll, Qt::SkipEmptyParts, QSvgSymbolLike::slice, toString(), QSvgTinyDocument::viewBox(), QSvgSymbolLike::Visible, QSvgSymbolLike::xMax, QSvgSymbolLike::xMid, QSvgSymbolLike::xMin, QSvgSymbolLike::yMax, QSvgSymbolLike::yMid, and QSvgSymbolLike::yMin.

Referenced by createMarkerNode(), and createSymbolNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTbreakNode()

static bool parseTbreakNode ( QSvgNode * parent,
const QXmlStreamAttributes & ,
QSvgHandler *  )
static

Definition at line 4142 of file qsvghandler.cpp.

References QSvgNode::Textarea, and QSvgNode::type().

Referenced by findUtilFactory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTransform()

static void parseTransform ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 1434 of file qsvghandler.cpp.

References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QStringView::isEmpty(), parseTransformationMatrix(), QSvgAttributes::transform, and QStringView::trimmed().

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTransformationMatrix()

static QTransform parseTransformationMatrix ( QStringView value)
static

Definition at line 1055 of file qsvghandler.cpp.

References QString::constData(), error, i, ident, parseNumbersArray(), qDegreesToRadians(), qTan(), QString::size(), state, str, and QTransform::translate().

Referenced by createPatternNode(), parseBaseGradient(), and parseTransform().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseVisibility()

static void parseVisibility ( QSvgNode * node,
const QSvgAttributes & attributes,
QSvgHandler *  )
static

Definition at line 1448 of file qsvghandler.cpp.

References QStringView::isEmpty(), QSvgNode::isVisible(), QSvgNode::parent(), QT_INHERIT, QSvgNode::setVisible(), and QSvgAttributes::visibility.

Referenced by parseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pathArc()

static void pathArc ( QPainterPath & path,
qreal rx,
qreal ry,
qreal x_axis_rotation,
int large_arc_flag,
int sweep_flag,
qreal x,
qreal y,
qreal curx,
qreal cury )
static

Definition at line 1521 of file qsvghandler.cpp.

References d, i, pathArcSegment(), Q_PI, qAbs(), qAtan2(), qCeil(), qCos(), qSin(), qSqrt(), rx(), and ry().

Referenced by QQuickSvgParser::parsePathDataFast(), and parsePathDataFast().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pathArcSegment()

static void pathArcSegment ( QPainterPath & path,
qreal xc,
qreal yc,
qreal th0,
qreal th1,
qreal rx,
qreal ry,
qreal xAxisRotation )
static

Definition at line 1462 of file qsvghandler.cpp.

References Q_PI, qCos(), qSin(), rx(), and ry().

Referenced by pathArc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prefixMessage()

static QByteArray prefixMessage ( const QByteArray & msg,
const QXmlStreamReader * r )
static

Definition at line 43 of file qsvghandler.cpp.

References QByteArray::append(), QFile::encodeName(), file, QFile::fileName(), QByteArray::number(), QByteArrayLiteral, and QDir::toNativeSeparators().

Referenced by msgCouldNotResolveProperty(), msgProblemParsing(), and QSvgHandler::startElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Q_STATIC_ASSERT()

Q_STATIC_ASSERT ( sizeof(sizeTable)/sizeof(sizeTable[0]) = =FontSizeNone)

◆ qsvg_get_hex_rgb() [1/2]

bool qsvg_get_hex_rgb ( const char * name,
QRgb * rgb )

Definition at line 99 of file qsvghandler.cpp.

References ok, qRgb(), qstrlen(), qsvg_hex2int(), and rgb.

Referenced by qsvg_get_hex_rgb(), and resolveColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qsvg_get_hex_rgb() [2/2]

bool qsvg_get_hex_rgb ( const QChar * str,
int len,
QRgb * rgb )

Definition at line 134 of file qsvghandler.cpp.

References i, qsvg_get_hex_rgb(), rgb, and str.

+ Here is the call graph for this function:

◆ qsvg_h2i()

static int qsvg_h2i ( char hex,
bool * ok = nullptr )
inlinestatic

Definition at line 75 of file qsvghandler.cpp.

References hex, and ok.

Referenced by qsvg_hex2int(), and qsvg_hex2int().

+ Here is the caller graph for this function:

◆ qsvg_hex2int() [1/2]

static int qsvg_hex2int ( char s,
bool * ok = nullptr )
inlinestatic

Definition at line 93 of file qsvghandler.cpp.

References ok, and qsvg_h2i().

+ Here is the call graph for this function:

◆ qsvg_hex2int() [2/2]

static int qsvg_hex2int ( const char * s,
bool * ok = nullptr )
inlinestatic

Definition at line 88 of file qsvghandler.cpp.

References ok, and qsvg_h2i().

Referenced by qsvg_get_hex_rgb().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveColor()

static bool resolveColor ( QStringView colorStr,
QColor & color,
QSvgHandler * handler )
static

returns true when successfully set the color. false signifies that the color should be inherited

Definition at line 811 of file qsvghandler.cpp.

References QSvgHandler::currentColor(), QColor::fromString(), i, ok, parseNumbersList(), parsePercentageList(), QRgb, qsvg_get_hex_rgb(), QT_INHERIT, rgb, and QStringView::trimmed().

Referenced by constructColor(), parseAnimateColorNode(), parseBrush(), and parsePen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ someId()

static QString someId ( const QXmlStreamAttributes & attributes)
inlinestatic

Definition at line 149 of file qsvghandler.cpp.

Referenced by createFontNode(), createPatternNode(), parseAnimateColorNode(), parseAnimateTransformNode(), parseCoreNode(), parseStopNode(), and QSvgHandler::startElement().

+ Here is the caller graph for this function:

◆ stringToList()

static QStringList stringToList ( const QString & str)
inlinestatic

Definition at line 2097 of file qsvghandler.cpp.

References Qt::SkipEmptyParts, QString::split(), and str.

Referenced by parseCoreNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ styleFromUrl()

static QSvgStyleProperty * styleFromUrl ( QSvgNode * node,
const QString & url )
static

Definition at line 1002 of file qsvghandler.cpp.

References idFromUrl(), QSvgNode::styleProperty(), and url.

Referenced by parseBrush(), and parsePen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svgToQtCompositionMode()

◆ toDouble() [1/2]

static qreal toDouble ( const QChar *& str)
static

Definition at line 598 of file qsvghandler.cpp.

References QByteArray::fromRawData(), isDigit(), pos, qFpClassify(), str, QString::toLatin1(), and QString::unicode().

Referenced by constructColor(), createCircleNode(), createEllipseNode(), createFeColorMatrixNode(), createFeCompositeNode(), createFeGaussianBlurNode(), createFontNode(), createImageNode(), createLineNode(), createMarkerNode(), createRadialGradientNode(), createRectNode(), createSvgGlyph(), parseAnimateColorNode(), parseAnimateTransformNode(), parseBrush(), parseClockValue(), parseFontFaceNode(), parseLength(), parseNumbersArray(), parseNumbersList(), parsePen(), parsePercentageList(), and toDouble().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toDouble() [2/2]

static qreal toDouble ( QStringView str,
bool * ok = NULL )
static

Definition at line 678 of file qsvghandler.cpp.

References QString::constData(), ok, QString::size(), str, and toDouble().

+ Here is the call graph for this function:

Variable Documentation

◆ qt_inherit_text

QT_BEGIN_NAMESPACE const char* qt_inherit_text = "inherit"
static

Definition at line 40 of file qsvghandler.cpp.

◆ sizeTable

const qreal sizeTable[]
static
Initial value:
=
{ qreal(6.9), qreal(8.3), qreal(10.0), qreal(12.0), qreal(14.4), qreal(17.3), qreal(20.7) }
double qreal
Definition qtypes.h:187

Definition at line 1302 of file qsvghandler.cpp.

Referenced by parseFont().

◆ unfinishedElementsLimit

const int unfinishedElementsLimit = 2048
static

Definition at line 4596 of file qsvghandler.cpp.