Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QIconPrivate Class Reference

#include <qicon_p.h>

Collaboration diagram for QIconPrivate:

Public Types

enum  IconEngineHook { PlatformIconHook = 1000 }

Public Member Functions

 QIconPrivate (QIconEngine *e)
 ~QIconPrivate ()

Static Public Member Functions

static QIconPrivateget (QIcon *icon)
static const QIconPrivateget (const QIcon *icon)
static qreal pixmapDevicePixelRatio (qreal displayDevicePixelRatio, const QSize &requestedSize, const QSize &actualSize)
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.

Member Enumeration Documentation

◆ IconEngineHook

Enumerator
PlatformIconHook 

Definition at line 40 of file qicon_p.h.

Constructor & Destructor Documentation

◆ QIconPrivate()

QIconPrivate::QIconPrivate ( QIconEngine * e)
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>>.

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

◆ ~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 139 of file qicon.cpp.

References qt_cleanup_icon_cache().

Here is the call graph for this function:

◆ get() [1/2]

const QIconPrivate * QIconPrivate::get ( const QIcon * icon)
inlinestatic

Definition at line 38 of file qicon_p.h.

◆ get() [2/2]

QIconPrivate * QIconPrivate::get ( QIcon * icon)
inlinestatic

Definition at line 37 of file qicon_p.h.

◆ pixmapDevicePixelRatio()

qreal QIconPrivate::pixmapDevicePixelRatio ( qreal displayDevicePixelRatio,
const QSize & requestedSize,
const QSize & actualSize )
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)

Definition at line 155 of file qicon.cpp.

Member Data Documentation

◆ detach_no

int QIconPrivate::detach_no

Definition at line 48 of file qicon_p.h.

Referenced by QIconPrivate().

◆ engine

QIconEngine* QIconPrivate::engine

Definition at line 44 of file qicon_p.h.

Referenced by QIconPrivate(), and ~QIconPrivate().

◆ is_mask

bool QIconPrivate::is_mask

Definition at line 49 of file qicon_p.h.

Referenced by QIconPrivate().

◆ ref

QAtomicInt QIconPrivate::ref

Definition at line 46 of file qicon_p.h.

◆ serialNum

int QIconPrivate::serialNum

Definition at line 47 of file qicon_p.h.

Referenced by QIconPrivate().


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