![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtpropertybrowserutils_p.h>
Public Member Functions | |
| 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 void | paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)=0 |
| Uses the given painter to paint the icon with the required mode and state into the rectangle rect. | |
| 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 QIconEngine * | clone () const =0 |
| Reimplement this method to return a clone of this icon engine. | |
| 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< QSize > | availableSizes (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). | |
Static Public Member Functions | |
| static QPixmap | createEmptyPixmap (const QSize &size, qreal scale) |
Protected Member Functions | |
| QtPropertyIconEngine () | |
| 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... | |
Definition at line 101 of file qtpropertybrowserutils_p.h.
|
protecteddefault |
Definition at line 440 of file qtpropertybrowserutils.cpp.
Definition at line 462 of file qtpropertybrowserutils.cpp.
|
overridevirtual |
Returns a pixmap for the given size, mode, state and scale.
The scale argument is typically equal to the \l {High DPI} {device pixel ratio} of the display. The size is given in device-independent pixels.
Reimplemented from QIconEngine.
Definition at line 452 of file qtpropertybrowserutils.cpp.