![]() |
Qt 6.x
The Qt SDK
|
#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 | |
| QIconEngine * | engine |
| QAtomicInt | ref |
| int | serialNum |
| int | detach_no |
| bool | is_mask |
|
explicit |
|
static |
Definition at line 101 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:| 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 117 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:| int QIconPrivate::detach_no |
Definition at line 43 of file qicon_p.h.
Referenced by QIcon::cacheKey(), and QIcon::detach().
| QIconEngine* QIconPrivate::engine |
Definition at line 39 of file qicon_p.h.
Referenced by ~QIconPrivate(), QIcon::actualSize(), QIcon::addFile(), QIcon::addPixmap(), QIcon::availableSizes(), QIcon::detach(), QIcon::isNull(), QIcon::name(), QIcon::paint(), ScalableEntry::pixmap(), and QIcon::pixmap().
| bool QIconPrivate::is_mask |
Definition at line 44 of file qicon_p.h.
Referenced by QIcon::isMask(), and QIcon::setIsMask().
| QAtomicInt QIconPrivate::ref |
Definition at line 41 of file qicon_p.h.
Referenced by QIcon::QIcon(), QIcon::~QIcon(), QIcon::detach(), QIcon::isDetached(), and QIcon::operator=().
| int QIconPrivate::serialNum |
Definition at line 42 of file qicon_p.h.
Referenced by QIcon::cacheKey().