42 #ifndef QSVGICONENGINE_H 43 #define QSVGICONENGINE_H 45 #include <QtGui/qiconengine.h> 46 #include <QtCore/qshareddata.h> QString key() const
Returns a key that identifies this icon engine.
The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
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...
State
This enum describes the state for which a pixmap is intended to be used.
The QString class provides a Unicode character string.
bool read(QDataStream &in)
Reads icon engine contents from the QDataStream in.
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
Called by QIcon::addPixmap().
#define QT_BEGIN_NAMESPACE
This macro expands to.
Mode
This enum type describes the mode for which a pixmap is intended to be used.
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state)
Returns the icon as a pixmap with the required size, mode, and state.
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)
Uses the given painter to paint the icon with the required mode and state into the rectangle rect...
The QIconEngineV2 class provides an abstract base class for QIcon renderers.
QIconEngineV2 * clone() const
Returns a clone of this icon engine.
The QRect class defines a rectangle in the plane using integer precision.
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
Called by QIcon::addFile().
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
The QDataStream class provides serialization of binary data to a QIODevice.
QSharedDataPointer< QSvgIconEnginePrivate > d
static QString fileName(const QString &fileUrl)
bool write(QDataStream &out) const
Writes the contents of this engine to the QDataStream out.