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

Public Member Functions

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

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 QtPropertyIconEngine
static QPixmap createEmptyPixmap (const QSize &size, qreal scale)
Protected Member Functions inherited from QtPropertyIconEngine
 QtPropertyIconEngine ()
Protected Member Functions inherited from QIconEngine
 QIconEngine (const QIconEngine &other)

Detailed Description

Definition at line 84 of file qtpropertybrowserutils.cpp.

Constructor & Destructor Documentation

◆ QtPixmapIconEngine() [1/2]

QtPixmapIconEngine::QtPixmapIconEngine ( QPixmap p)
inlineexplicit

Definition at line 89 of file qtpropertybrowserutils.cpp.

◆ QtPixmapIconEngine() [2/2]

QtPixmapIconEngine::QtPixmapIconEngine ( QPixmap p)
inlineexplicit

Definition at line 89 of file qtpropertybrowserutils.cpp.

Member Function Documentation

◆ clone() [1/2]

QIconEngine * QtPixmapIconEngine::clone ( ) const
inlineoverridevirtual

Reimplement this method to return a clone of this icon engine.

Implements QIconEngine.

Definition at line 91 of file qtpropertybrowserutils.cpp.

◆ clone() [2/2]

QIconEngine * QtPixmapIconEngine::clone ( ) const
inlineoverridevirtual

Reimplement this method to return a clone of this icon engine.

Implements QIconEngine.

Definition at line 91 of file qtpropertybrowserutils.cpp.

◆ paint() [1/2]

void QtPixmapIconEngine::paint ( QPainter * painter,
const QRect & rect,
QIcon::Mode mode,
QIcon::State state )
inlineoverridevirtual

Uses the given painter to paint the icon with the required mode and state into the rectangle rect.

Implements QIconEngine.

Definition at line 96 of file qtpropertybrowserutils.cpp.

◆ paint() [2/2]

void QtPixmapIconEngine::paint ( QPainter * painter,
const QRect & rect,
QIcon::Mode mode,
QIcon::State state )
inlineoverridevirtual

Uses the given painter to paint the icon with the required mode and state into the rectangle rect.

Implements QIconEngine.

Definition at line 96 of file qtpropertybrowserutils.cpp.


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