7#include <QtGui/private/qtguiglobal_p.h>
22#include <QtGui/QIconEngine>
23#include <QtGui/QPixmapCache>
24#include <private/qicon_p.h>
25#include <private/qiconengine_p.h>
26#include <private/qfactoryloader_p.h>
27#include <QtCore/QHash>
28#include <QtCore/QList>
29#include <QtCore/QTypeInfo>
106 mutable uint m_themeKey = 0;
108 mutable std::unique_ptr<QIconEngine> m_proxiedEngine;
133 bool hasIcon()
const;
170 QString fallbackThemeName()
const;
173 void setThemeSearchPath(
const QStringList &searchPaths);
175 void setFallbackSearchPaths(
const QStringList &searchPaths);
179 void updateSystemTheme();
180 void invalidateKey();
197 mutable QString m_userFallbackTheme;
200 mutable QHash <QString, QIconTheme> themeList;
\inmodule QtCore\reentrant
The QIconEngine class provides an abstract base class for QIcon renderers.
virtual QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state)=0
virtual ~QIconLoaderEngineEntry()
An icon engine based on icon entries collected by QIconLoader.
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) override
Returns the actual size of the icon the engine provides for the requested size, mode and state.
static Q_GUI_EXPORT QIconLoaderEngineEntry * entryForSize(const QThemeIconInfo &info, const QSize &size, int scale=1)
QString key() const override
\variable QIconEngine::ScaledPixmapArgument::size
QPixmap scaledPixmap(const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale) override
QString iconName() override
QList< QSize > availableSizes(QIcon::Mode mode, QIcon::State state) override
QIconEngine * clone() const override
Reimplement this method to return a clone of this icon engine.
bool hasUserTheme() const
QIconDirInfo dirInfo(int dirindex)
QStringList contentDirs()
QStringList parents() const
QList< QIconDirInfo > keyList()
QList< QSharedPointer< QIconCacheGtkReader > > m_gtkCaches
The QIcon class provides scalable icons in different modes and states.
Mode
This enum type describes the mode for which a pixmap is intended to be used.
State
This enum describes the state for which a pixmap is intended to be used.
The QPainter class performs low-level painting on widgets and other paint devices.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QString iconName() override
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
A named-based icon engine for providing theme icons.
QString key() const override
\variable QIconEngine::ScaledPixmapArgument::size
bool write(QDataStream &out) const override
Writes the contents of this engine to the QDataStream out.
bool read(QDataStream &in) override
Reads icon engine contents from the QDataStream in.
QIconEngine * clone() const override
Reimplement this method to return a clone of this icon engine.
QIconEngine * proxiedEngine() const override
Combined button and popup list for selecting options.
std::vector< std::unique_ptr< QIconLoaderEngineEntry > > QThemeIconEntries
static void ensureInitialized()
static QString themeName()
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei const GLchar *const * path
GLenum GLenum GLenum GLenum GLenum scale
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QFileInfo info(fileName)
[8]
QTextStream out(stdout)
[7]
QIconDirInfo(const QString &_path=QString())
QThemeIconEntries entries