Qt 4.8
Public Functions | Public Variables | List of all members
QIconPrivate Class Reference

#include <qicon_p.h>

Public Functions

 QIconPrivate ()
 
 ~QIconPrivate ()
 

Public Variables

int detach_no
 
QIconEngineengine
 
int engine_version
 
QAtomicInt ref
 
int serialNum
 
QAtomicIntv1RefCount
 

Detailed Description

Definition at line 66 of file qicon_p.h.

Constructors and Destructors

◆ QIconPrivate()

QIconPrivate::QIconPrivate ( )

Definition at line 124 of file qicon.cpp.

125  : engine(0), ref(1),
127  detach_no(0),
128  engine_version(2),
129  v1RefCount(0)
130 {
131 }
int serialNum
Definition: qicon_p.h:85
QAtomicInt * v1RefCount
Definition: qicon_p.h:89
QAtomicInt ref
Definition: qicon_p.h:84
int engine_version
Definition: qicon_p.h:87
static QBasicAtomicInt serialNumCounter
Definition: qicon.cpp:113
int fetchAndAddRelaxed(int valueToAdd)
int detach_no
Definition: qicon_p.h:86
QIconEngine * engine
Definition: qicon_p.h:82

◆ ~QIconPrivate()

QIconPrivate::~QIconPrivate ( )
inline

Definition at line 71 of file qicon_p.h.

71  {
72  if (engine_version == 1) {
73  if (!v1RefCount->deref()) {
74  delete engine;
75  delete v1RefCount;
76  }
77  } else if (engine_version == 2) {
78  delete engine;
79  }
80  }
QAtomicInt * v1RefCount
Definition: qicon_p.h:89
int engine_version
Definition: qicon_p.h:87
bool deref()
Atomically decrements the value of this QAtomicInt.
QIconEngine * engine
Definition: qicon_p.h:82

Properties

◆ detach_no

int QIconPrivate::detach_no

Definition at line 86 of file qicon_p.h.

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

◆ engine

QIconEngine* QIconPrivate::engine

◆ engine_version

int QIconPrivate::engine_version

◆ ref

QAtomicInt QIconPrivate::ref

◆ serialNum

int QIconPrivate::serialNum

Definition at line 85 of file qicon_p.h.

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

◆ v1RefCount

QAtomicInt* QIconPrivate::v1RefCount

Definition at line 89 of file qicon_p.h.

Referenced by QIcon::addFile(), QIcon::detach(), QIcon::QIcon(), and ~QIconPrivate().


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