![]() |
Qt 6.x
The Qt SDK
|
Collaboration diagram for QIconCacheGtkReader:Public Member Functions | |
| QIconCacheGtkReader (const QString &themeDir) | |
| QList< const char * > | lookup (QStringView) |
| bool | isValid () const |
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 210 of file qiconloader.cpp.
|
explicit |
Definition at line 242 of file qiconloader.cpp.
References QFileInfo::absoluteFilePath(), QFileInfo::exists(), QString::fromUtf8(), i, info, QFileInfo::lastModified(), m_data, QFileDevice::map(), QFile::open(), QIODeviceBase::ReadOnly, QFile::setFileName(), QFile::size(), and QTimeZone::UTC.
Here is the call graph for this function:
|
inline |
Definition at line 215 of file qiconloader.cpp.
Referenced by lookup().
Here is the caller graph for this function:| 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 287 of file qiconloader.cpp.
References hash, icon_name_hash(), isValid(), j, m_data, o, and ret.
Here is the call graph for this function: