![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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 |
Definition at line 131 of file qicon.cpp.
References QIconPrivate(), detach_no, engine, is_mask, nextSerialNumCounter(), and serialNum.
Referenced by QIconPrivate(), and QIcon::operator>>.
|
static |
Definition at line 139 of file qicon.cpp.
References qt_cleanup_icon_cache().
|
static |
Computes the displayDevicePixelRatio for a pixmap.
If displayDevicePixelRatio is 1.0 the returned 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)
| int QIconPrivate::detach_no |
Definition at line 43 of file qicon_p.h.
Referenced by QIconPrivate().
| QIconEngine* QIconPrivate::engine |
Definition at line 39 of file qicon_p.h.
Referenced by QIconPrivate(), and ~QIconPrivate().
| bool QIconPrivate::is_mask |
Definition at line 44 of file qicon_p.h.
Referenced by QIconPrivate().
| QAtomicInt QIconPrivate::ref |
| int QIconPrivate::serialNum |
Definition at line 42 of file qicon_p.h.
Referenced by QIconPrivate().