TextUtils::TextUtilsIconNameCache Class

The TextUtilsIconNameCache class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextUtils/TextUtilsIconNameCache>
CMake: find_package(KF6TextUtils REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextUtils)

Public Functions

void clearCache()
QString iconPath(const QString &name, int size) const

Static Public Members

TextUtils::TextUtilsIconNameCache *self()

Detailed Description

Member Function Documentation

void TextUtilsIconNameCache::clearCache()

Clears the icon cache

QString TextUtilsIconNameCache::iconPath(const QString &name, int size) const

Gets the icon path for an icon by name and size name The name of the icon size The desired size of the icon Returns The path to the icon file

[static] TextUtils::TextUtilsIconNameCache *TextUtilsIconNameCache::self()

Returns the singleton instance of TextUtilsIconNameCache Returns Pointer to the singleton instance