messageviewer
MessageViewer::IconNameCache Class Reference
#include <iconnamecache.h>
Public Member Functions | |
QString | iconPath (const QString &name, int size) const |
Static Public Member Functions | |
static IconNameCache * | instance () |
Detailed Description
This class is a replacement for KIconLoader::iconPath(), because the iconPath() function can be slow for non-existing icons or icons that fall back to a generic icon.
Reason is that KIconLoader does slow system calls for finding the icons.
The IconNameCache caches the result of iconPath() in a map and solves the slowness.
Definition at line 35 of file iconnamecache.h.
Member Function Documentation
QString MessageViewer::IconNameCache::iconPath | ( | const QString & | name, |
int | size | ||
) | const |
Definition at line 42 of file iconnamecache.cpp.
|
static |
Definition at line 28 of file iconnamecache.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.