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
QIconPrivate Class Reference

#include <qicon_p.h>

+ Collaboration diagram for QIconPrivate:

Public Member Functions

 QIconPrivate (QIconEngine *e)
 
 ~QIconPrivate ()
 
qreal pixmapDevicePixelRatio (qreal displayDevicePixelRatio, const QSize &requestedSize, const QSize &actualSize)
 

Static Public Member Functions

static void clearIconCache ()
 

Public Attributes

QIconEngineengine
 
QAtomicInt ref
 
int serialNum
 
int detach_no
 
bool is_mask
 

Detailed Description

Definition at line 28 of file qicon_p.h.

Constructor & Destructor Documentation

◆ QIconPrivate()

QIconPrivate::QIconPrivate ( QIconEngine * e)
explicit

Definition at line 94 of file qicon.cpp.

◆ ~QIconPrivate()

QIconPrivate::~QIconPrivate ( )
inline

Definition at line 33 of file qicon_p.h.

References engine.

Member Function Documentation

◆ clearIconCache()

void QIconPrivate::clearIconCache ( )
static

Definition at line 102 of file qicon.cpp.

References qt_cleanup_icon_cache().

Referenced by QGuiApplicationPrivate::processThemeChanged().

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

◆ pixmapDevicePixelRatio()

qreal QIconPrivate::pixmapDevicePixelRatio ( qreal displayDevicePixelRatio,
const QSize & requestedSize,
const QSize & actualSize )

Computes the displayDevicePixelRatio for a pixmap.

If displayDevicePixelRatio is 1.0 the reurned value is 1.0, always.

For a displayDevicePixelRatio of 2.0 the returned value will be between 1.0 and 2.0, depending on requestedSize and actualsize: If actualsize < requestedSize : 1.0 (not enough pixels for a normal-dpi pixmap) If actualsize == requestedSize * 2.0 : 2.0 (enough pixels for a high-dpi pixmap) else : a scaled value between 1.0 and 2.0. (pixel count is between normal-dpi and high-dpi)

Definition at line 118 of file qicon.cpp.

References QSize::height(), qMax(), and QSize::width().

Referenced by QIcon::actualSize(), and QIcon::pixmap().

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

Member Data Documentation

◆ detach_no

int QIconPrivate::detach_no

Definition at line 43 of file qicon_p.h.

Referenced by QIcon::cacheKey(), and QIcon::detach().

◆ engine

◆ is_mask

bool QIconPrivate::is_mask

Definition at line 44 of file qicon_p.h.

Referenced by QIcon::isMask(), and QIcon::setIsMask().

◆ ref

QAtomicInt QIconPrivate::ref

◆ serialNum

int QIconPrivate::serialNum

Definition at line 42 of file qicon_p.h.

Referenced by QIcon::cacheKey().


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