qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
PixmapCache Class Reference

#include <pixmapcache.h>

Collaboration diagram for PixmapCache:
Collaboration graph

Public Member Functions

QPixmap get (const QString &filename, QSize size)
 

Static Public Member Functions

static PixmapCachegetInstance ()
 Returns the singleton instance. More...
 

Protected Member Functions

 PixmapCache ()
 
 PixmapCache (PixmapCache &)=delete
 
PixmapCacheoperator= (const PixmapCache &)=delete
 

Private Attributes

QHash< QString, QIcon > cache
 

Detailed Description

Definition at line 26 of file pixmapcache.h.

Constructor & Destructor Documentation

◆ PixmapCache() [1/2]

PixmapCache::PixmapCache ( )
inlineprotected

Definition at line 33 of file pixmapcache.h.

◆ PixmapCache() [2/2]

PixmapCache::PixmapCache ( PixmapCache )
protecteddelete

Member Function Documentation

◆ get()

QPixmap PixmapCache::get ( const QString &  filename,
QSize  size 
)

Definition at line 22 of file pixmapcache.cpp.

Here is the caller graph for this function:

◆ getInstance()

PixmapCache & PixmapCache::getInstance ( )
static

Returns the singleton instance.

Definition at line 40 of file pixmapcache.cpp.

Here is the caller graph for this function:

◆ operator=()

PixmapCache& PixmapCache::operator= ( const PixmapCache )
protecteddelete

Member Data Documentation

◆ cache

QHash<QString, QIcon> PixmapCache::cache
private

Definition at line 40 of file pixmapcache.h.


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