Qt 4.8
Public Functions | Properties | List of all members
QGLEngineThreadStorage< T > Class Template Reference

#include <qgl_p.h>

Public Functions

QPaintEngineengine ()
 

Properties

QThreadStorage< QPaintEngine * > storage
 

Detailed Description

template<class T>
class QGLEngineThreadStorage< T >

Definition at line 933 of file qgl_p.h.

Functions

◆ engine()

template<class T >
QPaintEngine* QGLEngineThreadStorage< T >::engine ( )
inline

Definition at line 936 of file qgl_p.h.

936  {
937  QPaintEngine *&localEngine = storage.localData();
938  if (!localEngine)
939  localEngine = new T;
940  return localEngine;
941  }
QThreadStorage< QPaintEngine * > storage
Definition: qgl_p.h:944
T & localData()
Returns a reference to the data that was set by the calling thread.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
Definition: qpaintengine.h:90

Properties

◆ storage

template<class T >
QThreadStorage<QPaintEngine *> QGLEngineThreadStorage< T >::storage
private

Definition at line 944 of file qgl_p.h.


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