Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsvgiconengine.cpp File Reference
#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 QFileInfo::absoluteFilePath(), Qt::CaseInsensitive, CompressedSvgFile, QString::endsWith(), fi, QMimeDatabase::mimeTypeForFile(), QMimeType::name, OtherFile, and SvgFile.

Referenced by QSvgIconEngine::addFile(), QSSGLoadedTexture::load(), QQmlJS::Dom::DomUniverse::loadFile(), and QQmlJS::Dom::DomEnvironment::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: