Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QFontCache Class Reference

#include </home/clem/local/src/opie/qmake/include/private/qfontdata_p.h>

Inheritance diagram for QFontCache:

Inheritance graph
[legend]
Collaboration diagram for QFontCache:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QFontCache ()
 ~QFontCache ()
bool insert (const QString &, const QFontStruct *, int c)
void deleteItem (Item d)
void timerEvent (QTimerEvent *)

Private Attributes

int timer_id
bool fast

Constructor & Destructor Documentation

QFontCache::QFontCache  ) 
 

QFontCache::~QFontCache  ) 
 


Member Function Documentation

void QFontCache::deleteItem Item  d  )  [virtual]
 

Reimplement this function if you want to be able to delete items.

Deletes an item that is about to be removed from the collection.

This function has to reimplemented in the collection template classes, and should only delete item d if auto-delete has been enabled.

Warning:
If you reimplement this function you must also reimplement the destructor and call the virtual function clear() from your destructor. This is due to the way virtual functions and destructors work in C++: Virtual functions in derived classes cannot be called from a destructor. If you do not do this, your deleteItem() function will not be called when the container is destroyed.
See also:
newItem(), setAutoDelete()

Reimplemented from QCache< QFontStruct >.

bool QFontCache::insert const QString ,
const QFontStruct *  ,
int  c
 

void QFontCache::timerEvent QTimerEvent *   ) 
 


Member Data Documentation

bool QFontCache::fast [private]
 

Definition at line 233 of file qfontdata_p.h.

int QFontCache::timer_id [private]
 

Definition at line 232 of file qfontdata_p.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:46:47 2005 for OPIE by  doxygen 1.4.2