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
QWindowsFileIconEngine Class Reference
Inheritance diagram for QWindowsFileIconEngine:
Collaboration diagram for QWindowsFileIconEngine:

Public Member Functions

 QWindowsFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts)
QList< QSizeavailableSizes (QIcon::Mode=QIcon::Normal, QIcon::State=QIcon::Off) override
 Returns sizes of all images that are contained in the engine for the specific mode and state.
 QWindowsFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts)
QList< QSizeavailableSizes (QIcon::Mode=QIcon::Normal, QIcon::State=QIcon::Off) override
 Returns sizes of all images that are contained in the engine for the specific mode and state.
Public Member Functions inherited from QAbstractFileIconEngine
 QAbstractFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts)
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override
 Returns the icon as a pixmap with the required size, mode, and state.
QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State, qreal scale) override
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.
bool isNull () override
QFileInfo fileInfo () const
QPlatformTheme::IconOptions options () const
Public Member Functions inherited from QPixmapIconEngine
 QPixmapIconEngine ()
 QPixmapIconEngine (const QPixmapIconEngine &)
 ~QPixmapIconEngine ()
void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
 Uses the given painter to paint the icon with the required mode and state into the rectangle rect.
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Returns the icon as a pixmap with the required size, mode, and state.
QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale) override
QPixmapIconEngineEntrybestMatch (const QSize &size, qreal scale, QIcon::Mode mode, QIcon::State state)
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.
void addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) override
 Called by QIcon::addPixmap().
void addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Called by QIcon::addFile().
bool isNull () override
QString key () const override
 \variable QIconEngine::ScaledPixmapArgument::size
QIconEngineclone () const override
 Reimplement this method to return a clone of this icon engine.
bool read (QDataStream &in) override
 Reads icon engine contents from the QDataStream in.
bool write (QDataStream &out) const override
 Writes the contents of this engine to the QDataStream out.
Public Member Functions inherited from QIconEngine
 QIconEngine ()
virtual ~QIconEngine ()
 Destroys the icon engine.
virtual QString iconName ()
 Returns the name used to create the engine, if available.
virtual void virtual_hook (int id, void *data)
 Additional method to allow extending QIconEngine without adding new virtual methods (and without breaking binary compatibility).

Protected Member Functions

QString cacheKey () const override
QPixmap filePixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override
QString cacheKey () const override
QPixmap filePixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override
Protected Member Functions inherited from QIconEngine
 QIconEngine (const QIconEngine &other)

Additional Inherited Members

Public Types inherited from QIconEngine
enum  IconEngineHook { IsNullHook = 3 , ScaledPixmapHook }
 These enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility. More...
Static Public Member Functions inherited from QAbstractFileIconEngine
template<class It>
static QList< QSizetoSizeList (It i1, It i2)
Static Public Member Functions inherited from QPixmapIconEngine
static QSize adjustSize (const QSize &expectedSize, QSize size)

Detailed Description

Definition at line 1104 of file qwindowstheme.cpp.

Constructor & Destructor Documentation

◆ QWindowsFileIconEngine() [1/2]

QWindowsFileIconEngine::QWindowsFileIconEngine ( const QFileInfo & info,
QPlatformTheme::IconOptions opts )
inlineexplicit

Definition at line 1107 of file qwindowstheme.cpp.

References QWindowsFileIconEngine().

Referenced by QWindowsFileIconEngine().

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

◆ QWindowsFileIconEngine() [2/2]

QWindowsFileIconEngine::QWindowsFileIconEngine ( const QFileInfo & info,
QPlatformTheme::IconOptions opts )
inlineexplicit

Definition at line 1107 of file qwindowstheme.cpp.

Member Function Documentation

◆ availableSizes() [1/2]

QList< QSize > QWindowsFileIconEngine::availableSizes ( QIcon::Mode mode = QIcon::Normal,
QIcon::State state = QIcon::Off )
inlineoverridevirtual

Returns sizes of all images that are contained in the engine for the specific mode and state.

Reimplemented from QPixmapIconEngine.

Definition at line 1110 of file qwindowstheme.cpp.

References QWindowsTheme::instance().

Here is the call graph for this function:

◆ availableSizes() [2/2]

QList< QSize > QWindowsFileIconEngine::availableSizes ( QIcon::Mode mode = QIcon::Normal,
QIcon::State state = QIcon::Off )
inlineoverridevirtual

Returns sizes of all images that are contained in the engine for the specific mode and state.

Reimplemented from QPixmapIconEngine.

Definition at line 1110 of file qwindowstheme.cpp.

◆ cacheKey() [1/2]

QString QWindowsFileIconEngine::cacheKey ( ) const
overrideprotectedvirtual

Reimplemented from QAbstractFileIconEngine.

Definition at line 1118 of file qwindowstheme.cpp.

◆ cacheKey() [2/2]

QString QWindowsFileIconEngine::cacheKey ( ) const
overrideprotectedvirtual

Reimplemented from QAbstractFileIconEngine.

◆ filePixmap() [1/2]

QPixmap QWindowsFileIconEngine::filePixmap ( const QSize & size,
QIcon::Mode mode,
QIcon::State  )
overrideprotectedvirtual

◆ filePixmap() [2/2]

QPixmap QWindowsFileIconEngine::filePixmap ( const QSize & size,
QIcon::Mode mode,
QIcon::State  )
overrideprotectedvirtual

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