![]() |
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>.
|
#include <qicon_p.h>
Public Member Functions | |
QIconPrivate (QIconEngine *e) | |
~QIconPrivate () | |
Static Public Member Functions | |
static qreal | pixmapDevicePixelRatio (qreal displayDevicePixelRatio, const QSize &requestedSize, const QSize &actualSize) |
static void | clearIconCache () |
Public Attributes | |
QIconEngine * | engine |
QAtomicInt | ref |
int | serialNum |
int | detach_no |
bool | is_mask |
|
explicit |
|
static |
Definition at line 133 of file qicon.cpp.
References qt_cleanup_icon_cache().
Referenced by QGuiApplicationPrivate::processThemeChanged().
|
static |
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 149 of file qicon.cpp.
References QSize::height(), qMax(), and QSize::width().
Referenced by QIcon::actualSize(), PixmapEntry::pixmap(), QIcon::pixmap(), and QPixmapIconEngine::scaledPixmap().
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(), 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().