![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qiconloader_p.h>
Public Member Functions | |
| QIconLoader () | |
| QThemeIconInfo | loadIcon (const QString &iconName) const |
| uint | themeKey () const |
| QString | themeName () const |
| void | setThemeName (const QString &themeName) |
| QString | fallbackThemeName () const |
| void | setFallbackThemeName (const QString &themeName) |
| QIconTheme | theme () |
| void | setThemeSearchPath (const QStringList &searchPaths) |
| QStringList | themeSearchPaths () const |
| void | setFallbackSearchPaths (const QStringList &searchPaths) |
| QStringList | fallbackSearchPaths () const |
| QIconDirInfo | dirInfo (int dirindex) |
| void | updateSystemTheme () |
| void | invalidateKey () |
| void | ensureInitialized () |
| bool | hasUserTheme () const |
| QIconEngine * | iconEngine (const QString &iconName) const |
Static Public Member Functions | |
| static QIconLoader * | instance () |
Definition at line 166 of file qiconloader_p.h.
| QIconLoader::QIconLoader | ( | ) |
Definition at line 47 of file qiconloader.cpp.
| QIconDirInfo QIconLoader::dirInfo | ( | int | dirindex | ) |
| void QIconLoader::ensureInitialized | ( | ) |
Definition at line 86 of file qiconloader.cpp.
| QStringList QIconLoader::fallbackSearchPaths | ( | ) | const |
Definition at line 207 of file qiconloader.cpp.
| QString QIconLoader::fallbackThemeName | ( | ) | const |
Definition at line 170 of file qiconloader.cpp.
|
inline |
Definition at line 187 of file qiconloader_p.h.
| QIconEngine * QIconLoader::iconEngine | ( | const QString & | iconName | ) | const |
Definition at line 653 of file qiconloader.cpp.
|
static |
Gets an instance.
\l QIcon::setFallbackThemeName() should be called before QGuiApplication is created, to avoid a race condition (QTBUG-74252). When this function is called from there, ensureInitialized() does not succeed because there is no QPlatformTheme yet, so systemThemeName() is empty, and we don't want m_systemTheme to get initialized to the fallback theme instead of the normal one.
Definition at line 114 of file qiconloader.cpp.
| void QIconLoader::invalidateKey | ( | ) |
Definition at line 136 of file qiconloader.cpp.
| QThemeIconInfo QIconLoader::loadIcon | ( | const QString & | iconName | ) | const |
Definition at line 613 of file qiconloader.cpp.
| void QIconLoader::setFallbackSearchPaths | ( | const QStringList & | searchPaths | ) |
Definition at line 200 of file qiconloader.cpp.
Definition at line 175 of file qiconloader.cpp.
Definition at line 153 of file qiconloader.cpp.
| void QIconLoader::setThemeSearchPath | ( | const QStringList & | searchPaths | ) |
Definition at line 182 of file qiconloader.cpp.
|
inline |
Definition at line 177 of file qiconloader_p.h.
|
inline |
Definition at line 171 of file qiconloader_p.h.
| QString QIconLoader::themeName | ( | ) | const |
Definition at line 148 of file qiconloader.cpp.
| QStringList QIconLoader::themeSearchPaths | ( | ) | const |
Definition at line 190 of file qiconloader.cpp.
| void QIconLoader::updateSystemTheme | ( | ) |
Definition at line 122 of file qiconloader.cpp.