Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QIconCacheGtkReader Class Reference
Collaboration diagram for QIconCacheGtkReader:

Public Member Functions

 QIconCacheGtkReader (const QString &themeDir)
QList< const char * > lookup (QStringView)
bool isValid () const
 QIconCacheGtkReader (const QString &themeDir)
QList< const char * > lookup (QStringView)
bool isValid () const

Detailed Description

Helper class that reads and looks up into the icon-theme.cache generated with gtk-update-icon-cache. If at any point we detect a corruption in the file (because the offsets point at wrong locations for example), the reader is marked as invalid.

Definition at line 222 of file qiconloader.cpp.

Constructor & Destructor Documentation

◆ QIconCacheGtkReader() [1/2]

QIconCacheGtkReader::QIconCacheGtkReader ( const QString & themeDir)
explicit

Definition at line 254 of file qiconloader.cpp.

◆ QIconCacheGtkReader() [2/2]

QIconCacheGtkReader::QIconCacheGtkReader ( const QString & themeDir)
explicit

Member Function Documentation

◆ isValid() [1/2]

bool QIconCacheGtkReader::isValid ( ) const
inline

Definition at line 227 of file qiconloader.cpp.

Referenced by lookup().

Here is the caller graph for this function:

◆ isValid() [2/2]

bool QIconCacheGtkReader::isValid ( ) const
inline

Definition at line 227 of file qiconloader.cpp.

◆ lookup() [1/2]

QList< const char * > QIconCacheGtkReader::lookup ( QStringView name)

lookup the icon name and return the list of subdirectories in which an icon with this name is present. The char* are pointers to the mapped data. For example, this would return { "32x32/apps", "24x24/apps" , ... }

Definition at line 299 of file qiconloader.cpp.

References isValid().

Here is the call graph for this function:

◆ lookup() [2/2]

QList< const char * > QIconCacheGtkReader::lookup ( QStringView )

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