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

(eb733a078b728e56bbfef7ab395a5de645aa2dd4)

#include "qsvgiconengine.h"
#include "qpainter.h"
#include "qpixmap.h"
#include "qsvgrenderer.h"
#include "qpixmapcache.h"
#include "qfileinfo.h"
#include <QAtomicInt>
#include "qdebug.h"
#include <private/qguiapplication_p.h>
+ Include dependency graph for qsvgiconengine.cpp:

Go to the source code of this file.

Classes

class  QSvgIconEnginePrivate
 

Enumerations

enum  FileType { OtherFile , SvgFile , CompressedSvgFile }
 

Functions

static QByteArray maybeUncompress (const QByteArray &ba)
 
static FileType fileType (const QFileInfo &fi)
 

Enumeration Type Documentation

◆ FileType

enum FileType
Enumerator
OtherFile 
SvgFile 
CompressedSvgFile 

Definition at line 217 of file qsvgiconengine.cpp.

Function Documentation

◆ fileType()

static FileType fileType ( const QFileInfo & fi)
static

Definition at line 219 of file qsvgiconengine.cpp.

References Qt::CaseInsensitive, CompressedSvgFile, QMimeDatabase::mimeTypeForFile(), QMimeType::name, OtherFile, and SvgFile.

Referenced by QSvgIconEngine::addFile(), QSSGLoadedTexture::load(), QQmlJS::Dom::DomEnvironment::loadFile(), and QQmlJS::Dom::DomUniverse::loadFile().

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

◆ maybeUncompress()

static QByteArray maybeUncompress ( const QByteArray & ba)
static

Definition at line 91 of file qsvgiconengine.cpp.

References ba, and qUncompress().

Referenced by QSvgIconEnginePrivate::tryLoad().

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