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
QSvgIconEnginePrivate Class Reference
+ Inheritance diagram for QSvgIconEnginePrivate:
+ Collaboration diagram for QSvgIconEnginePrivate:

Public Member Functions

 QSvgIconEnginePrivate ()
 
 ~QSvgIconEnginePrivate ()
 
QString pmcKey (const QSize &size, QIcon::Mode mode, QIcon::State state)
 
void stepSerialNum ()
 
bool tryLoad (QSvgRenderer *renderer, QIcon::Mode mode, QIcon::State state)
 
QIcon::Mode loadDataForModeAndState (QSvgRenderer *renderer, QIcon::Mode mode, QIcon::State state)
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Static Public Member Functions

static int hashKey (QIcon::Mode mode, QIcon::State state)
 

Public Attributes

QHash< int, QStringsvgFiles
 
QHash< int, QByteArray > * svgBuffers
 
QHash< int, QPixmap > * addedPixmaps
 
int serialNum
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Static Public Attributes

static QAtomicInt lastSerialNum
 

Detailed Description

Definition at line 22 of file qsvgiconengine.cpp.

Constructor & Destructor Documentation

◆ QSvgIconEnginePrivate()

QSvgIconEnginePrivate::QSvgIconEnginePrivate ( )
inline

Definition at line 25 of file qsvgiconengine.cpp.

References stepSerialNum().

+ Here is the call graph for this function:

◆ ~QSvgIconEnginePrivate()

QSvgIconEnginePrivate::~QSvgIconEnginePrivate ( )
inline

Definition at line 29 of file qsvgiconengine.cpp.

References addedPixmaps, and svgBuffers.

Member Function Documentation

◆ hashKey()

static int QSvgIconEnginePrivate::hashKey ( QIcon::Mode mode,
QIcon::State state )
inlinestatic

Definition at line 32 of file qsvgiconengine.cpp.

References state.

Referenced by QSvgIconEngine::actualSize(), QSvgIconEngine::addFile(), QSvgIconEngine::addPixmap(), QSvgIconEngine::pixmap(), QSvgIconEngine::read(), tryLoad(), and QSvgIconEngine::write().

+ Here is the caller graph for this function:

◆ loadDataForModeAndState()

QIcon::Mode QSvgIconEnginePrivate::loadDataForModeAndState ( QSvgRenderer * renderer,
QIcon::Mode mode,
QIcon::State state )

Definition at line 118 of file qsvgiconengine.cpp.

References QIcon::Active, QIcon::Disabled, QIcon::Normal, QIcon::Off, QIcon::On, renderer, QIcon::Selected, state, and tryLoad().

Referenced by QSvgIconEngine::pixmap().

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

◆ pmcKey()

QString QSvgIconEnginePrivate::pmcKey ( const QSize & size,
QIcon::Mode mode,
QIcon::State state )
inline

Definition at line 35 of file qsvgiconengine.cpp.

References QString::number(), serialNum, and state.

Referenced by QSvgIconEngine::pixmap().

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

◆ stepSerialNum()

void QSvgIconEnginePrivate::stepSerialNum ( )
inline

Definition at line 40 of file qsvgiconengine.cpp.

References lastSerialNum, and serialNum.

Referenced by QSvgIconEnginePrivate(), QSvgIconEngine::addFile(), and QSvgIconEngine::addPixmap().

+ Here is the caller graph for this function:

◆ tryLoad()

bool QSvgIconEnginePrivate::tryLoad ( QSvgRenderer * renderer,
QIcon::Mode mode,
QIcon::State state )

Definition at line 100 of file qsvgiconengine.cpp.

References hashKey(), QSvgRenderer::load(), maybeUncompress(), renderer, state, svgBuffers, svgFiles, and QHash< Key, T >::value().

Referenced by loadDataForModeAndState().

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

Member Data Documentation

◆ addedPixmaps

◆ lastSerialNum

QAtomicInt QSvgIconEnginePrivate::lastSerialNum
static

Definition at line 50 of file qsvgiconengine.cpp.

Referenced by stepSerialNum().

◆ serialNum

int QSvgIconEnginePrivate::serialNum

Definition at line 49 of file qsvgiconengine.cpp.

Referenced by pmcKey(), and stepSerialNum().

◆ svgBuffers

◆ svgFiles


The documentation for this class was generated from the following file: