Back to index

kdeartwork  4.3.2
Static Public Member Functions | Static Private Attributes
Glow::PixmapCache Class Reference

#include <glowbutton.h>

List of all members.

Static Public Member Functions

static const QPixmap * find (const QString &key)
static void insert (const QString &key, const QPixmap *pixmap)
static void erase (const QString &key)
static void clear ()

Static Private Attributes

static QMap< QString, const
QPixmap * > 
m_pixmapMap

Detailed Description

Definition at line 38 of file glowbutton.h.


Member Function Documentation

void Glow::PixmapCache::clear ( ) [static]

Definition at line 72 of file glowbutton.cpp.

{
       // delete all pixmaps in the cache
       QMap<QString, const QPixmap*>::const_iterator it
              = m_pixmapMap.begin();
       for(; it != m_pixmapMap.end(); ++it)
              delete *it;
       m_pixmapMap.clear();
}

Here is the caller graph for this function:

void Glow::PixmapCache::erase ( const QString &  key) [static]

Definition at line 61 of file glowbutton.cpp.

{
       QMap<QString, const QPixmap*>::iterator it =
              m_pixmapMap.find(key);
       if (it != m_pixmapMap.end())
       {
              delete *it;
              m_pixmapMap.erase(it);
       }
}

Here is the caller graph for this function:

const QPixmap * Glow::PixmapCache::find ( const QString &  key) [static]

Definition at line 46 of file glowbutton.cpp.

{
       QMap<QString, const QPixmap*>::const_iterator it =
              m_pixmapMap.find(key);
       if( it != m_pixmapMap.end() )
              return *it;
       else
              return 0;
}

Here is the caller graph for this function:

void Glow::PixmapCache::insert ( const QString &  key,
const QPixmap *  pixmap 
) [static]

Definition at line 56 of file glowbutton.cpp.

{
       m_pixmapMap[key] = pixmap;
}

Here is the caller graph for this function:


Member Data Documentation

QMap< QString, const QPixmap * > Glow::PixmapCache::m_pixmapMap [static, private]

Definition at line 46 of file glowbutton.h.


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