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
qsvgtinydocument.cpp File Reference

(603fb3a47ac3919c4f260d8c29e5132a49bfee12)

#include "qsvgtinydocument_p.h"
#include "qsvghandler_p.h"
#include "qsvgfont_p.h"
#include "qpainter.h"
#include "qfile.h"
#include "qbuffer.h"
#include "qbytearray.h"
#include "qqueue.h"
#include "qstack.h"
#include "qtransform.h"
#include "qdebug.h"
#include <zlib.h>
+ Include dependency graph for qsvgtinydocument.cpp:

Go to the source code of this file.

Functions

static bool hasSvgHeader (const QByteArray &buf)
 
static QByteArray qt_inflateSvgzDataFrom (QIODevice *device, bool doCheckContent=true)
 
static bool isValidMatrix (const QTransform &transform)
 

Function Documentation

◆ hasSvgHeader()

static bool hasSvgHeader ( const QByteArray & buf)
static

Definition at line 42 of file qsvgtinydocument.cpp.

References QStringView::contains(), and QStringView::trimmed().

Referenced by QSvgTinyDocument::isLikelySvg(), and qt_inflateSvgzDataFrom().

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

◆ isValidMatrix()

static bool isValidMatrix ( const QTransform & transform)
static

Definition at line 415 of file qsvgtinydocument.cpp.

References qIsFinite().

+ Here is the call graph for this function:

◆ qt_inflateSvgzDataFrom()

static QByteArray qt_inflateSvgzDataFrom ( QIODevice * device,
bool doCheckContent = true )
static

Definition at line 64 of file qsvgtinydocument.cpp.

References CHUNK_SIZE, destination, device, hasSvgHeader(), inflate(), Q_ASSERT, QByteArray(), qCWarning, and QIODeviceBase::ReadOnly.

Referenced by QSvgTinyDocument::load(), and QSvgTinyDocument::load().

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