Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qiconloader.cpp File Reference

(0534a93ef04f38cf6dfc0d6c03827325d651a64c)

#include <private/qiconloader_p.h>
#include <private/qguiapplication_p.h>
#include <private/qicon_p.h>
#include <QtGui/QIconEnginePlugin>
#include <QtGui/QPixmapCache>
#include <qpa/qplatformtheme.h>
#include <QtGui/QIconEngine>
#include <QtGui/QPalette>
#include <QtCore/qmath.h>
#include <QtCore/QList>
#include <QtCore/QDir>
#include <QtCore/qloggingcategory.h>
#include <QtGui/QPainter>
#include <private/qhexstring_p.h>
+ Include dependency graph for qiconloader.cpp:

Go to the source code of this file.

Classes

class  QIconCacheGtkReader
 

Functions

static QString systemFallbackThemeName ()
 
static QString systemThemeName ()
 
static QStringList systemIconSearchPaths ()
 
static QStringList systemFallbackSearchPaths ()
 
QFactoryLoaderqt_iconEngineFactoryLoader ()
 
static quint32 icon_name_hash (const char *p)
 
QDebug operator<< (QDebug debug, const std::unique_ptr< QIconLoaderEngineEntry > &entry)
 
QDebug operator<< (QDebug debug, QIconEngine *engine)
 
static bool directoryMatchesSize (const QIconDirInfo &dir, int iconsize, int iconscale)
 
static int directorySizeDistance (const QIconDirInfo &dir, int iconsize, int iconscale)
 

Function Documentation

◆ directoryMatchesSize()

static bool directoryMatchesSize ( const QIconDirInfo & dir,
int iconsize,
int iconscale )
static

Definition at line 779 of file qiconloader.cpp.

References dir, QIconDirInfo::Fallback, QIconDirInfo::Fixed, Q_ASSERT, QIconDirInfo::Scalable, QString::size(), and QIconDirInfo::Threshold.

Referenced by QIconLoaderEngine::entryForSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ directorySizeDistance()

static int directorySizeDistance ( const QIconDirInfo & dir,
int iconsize,
int iconscale )
static

Definition at line 806 of file qiconloader.cpp.

References dir, QIconDirInfo::Fallback, QIconDirInfo::Fixed, Q_ASSERT, qAbs(), QIconDirInfo::Scalable, QString::size(), and QIconDirInfo::Threshold.

Referenced by QIconLoaderEngine::entryForSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ icon_name_hash()

static quint32 icon_name_hash ( const char * p)
static

Definition at line 280 of file qiconloader.cpp.

Referenced by QIconCacheGtkReader::lookup().

+ Here is the caller graph for this function:

◆ operator<<() [1/2]

QDebug operator<< ( QDebug debug,
const std::unique_ptr< QIconLoaderEngineEntry > & entry )

Definition at line 435 of file qiconloader.cpp.

References debug.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
QIconEngine * engine )

Definition at line 629 of file qiconloader.cpp.

References debug, and engine.

◆ qt_iconEngineFactoryLoader()

QFactoryLoader * qt_iconEngineFactoryLoader ( )
extern

Referenced by QIconLoader::ensureInitialized().

+ Here is the caller graph for this function:

◆ systemFallbackSearchPaths()

static QStringList systemFallbackSearchPaths ( )
inlinestatic

Definition at line 72 of file qiconloader.cpp.

References QPlatformTheme::IconFallbackSearchPaths, QVariant::isValid(), QGuiApplicationPrivate::platformTheme(), and QVariant::toStringList().

Referenced by QIconLoader::fallbackSearchPaths().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ systemFallbackThemeName()

static QString systemFallbackThemeName ( )
static

Definition at line 34 of file qiconloader.cpp.

References QVariant::isValid(), QGuiApplicationPrivate::platformTheme(), QPlatformTheme::SystemIconFallbackThemeName, and QVariant::toString().

Referenced by QIconLoader::ensureInitialized(), QIconLoader::fallbackThemeName(), and QIconLoader::updateSystemTheme().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ systemIconSearchPaths()

static QStringList systemIconSearchPaths ( )
inlinestatic

Definition at line 62 of file qiconloader.cpp.

References QPlatformTheme::IconThemeSearchPaths, QVariant::isValid(), QGuiApplicationPrivate::platformTheme(), and QVariant::toStringList().

Referenced by QIconLoader::setThemeName(), and QIconLoader::themeSearchPaths().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ systemThemeName()

static QString systemThemeName ( )
inlinestatic

Definition at line 49 of file qiconloader.cpp.

References QString::fromLocal8Bit(), QVariant::isValid(), QGuiApplicationPrivate::platformTheme(), qgetenv(), QPlatformTheme::SystemIconThemeName, and QVariant::toString().

Referenced by QIconLoader::ensureInitialized(), and QIconLoader::updateSystemTheme().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: