Qt 4.8
|
#include <qiconloader_p.h>
Public Functions | |
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. More... | |
QIconEngineV2 * | clone () const |
Returns a clone of this icon engine. More... | |
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. More... | |
QPixmap | pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) |
Returns the icon as a pixmap with the required size, mode, and state. More... | |
QIconLoaderEngine (const QString &iconName=QString()) | |
bool | read (QDataStream &in) |
Reads icon engine contents from the QDataStream in. More... | |
bool | write (QDataStream &out) const |
Writes the contents of this engine to the QDataStream out. More... | |
~QIconLoaderEngine () | |
Public Functions inherited from QIconEngineV2 | |
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. More... | |
QString | iconName () |
Returns the name used to create the engine, if available. More... | |
Public Functions inherited from QIconEngine | |
virtual void | addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) |
Called by QIcon::addFile(). More... | |
virtual void | addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) |
Called by QIcon::addPixmap(). More... | |
virtual | ~QIconEngine () |
Destroys the icon engine. More... | |
Private Functions | |
void | ensureLoaded () |
QIconLoaderEngineEntry * | entryForSize (const QSize &size) |
bool | hasIcon () const |
QString | key () const |
Returns a key that identifies this icon engine. More... | |
QIconLoaderEngine (const QIconLoaderEngine &other) | |
void | virtual_hook (int id, void *data) |
Additional method to allow extending QIconEngineV2 without adding new virtual methods (and without breaking binary compatibility). More... | |
Properties | |
QThemeIconEntries | m_entries |
QString | m_iconName |
uint | m_key |
Friends | |
class | QIconLoader |
Additional Inherited Members | |
Public Types inherited from QIconEngineV2 | |
enum | IconEngineHook { AvailableSizesHook = 1, IconNameHook } |
These enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility. More... | |
Definition at line 112 of file qiconloader_p.h.
QIconLoaderEngine::~QIconLoaderEngine | ( | ) |
Definition at line 317 of file qiconloader.cpp.
|
private |
Definition at line 324 of file qiconloader.cpp.
|
virtual |
Returns the actual size of the icon the engine provides for the requested size, mode and state.
The default implementation returns the given size.
Reimplemented from QIconEngine.
Definition at line 465 of file qiconloader.cpp.
Referenced by PixmapEntry::pixmap().
|
virtual |
Returns a clone of this icon engine.
Reimplemented from QIconEngineV2.
Definition at line 331 of file qiconloader.cpp.
|
private |
Definition at line 353 of file qiconloader.cpp.
Referenced by actualSize(), pixmap(), and virtual_hook().
|
private |
Definition at line 430 of file qiconloader.cpp.
Referenced by actualSize(), and pixmap().
|
private |
Definition at line 347 of file qiconloader.cpp.
|
privatevirtual |
Returns a key that identifies this icon engine.
Reimplemented from QIconEngineV2.
Definition at line 533 of file qiconloader.cpp.
Referenced by PixmapEntry::pixmap().
|
virtual |
Uses the given painter to paint the icon with the required mode and state into the rectangle rect.
Implements QIconEngine.
Definition at line 369 of file qiconloader.cpp.
|
virtual |
Returns the icon as a pixmap with the required size, mode, and state.
The default implementation creates a new pixmap and calls paint() to fill it.
Reimplemented from QIconEngine.
Definition at line 521 of file qiconloader.cpp.
Referenced by paint().
|
virtual |
Reads icon engine contents from the QDataStream in.
Returns true if the contents were read; otherwise returns false.
QIconEngineV2's default implementation always return false.
Reimplemented from QIconEngineV2.
Definition at line 336 of file qiconloader.cpp.
|
privatevirtual |
Additional method to allow extending QIconEngineV2 without adding new virtual methods (and without breaking binary compatibility).
The actual action and format of data depends on id argument which is in fact a constant from IconEngineHook enum.
Reimplemented from QIconEngineV2.
Definition at line 538 of file qiconloader.cpp.
|
virtual |
Writes the contents of this engine to the QDataStream out.
Returns true if the contents were written; otherwise returns false.
QIconEngineV2's default implementation always return false.
Reimplemented from QIconEngineV2.
Definition at line 341 of file qiconloader.cpp.
|
friend |
Definition at line 136 of file qiconloader_p.h.
|
private |
Definition at line 132 of file qiconloader_p.h.
Referenced by ensureLoaded(), entryForSize(), hasIcon(), virtual_hook(), and ~QIconLoaderEngine().
|
private |
Definition at line 133 of file qiconloader_p.h.
Referenced by ensureLoaded(), read(), virtual_hook(), and write().
|
private |
Definition at line 134 of file qiconloader_p.h.
Referenced by ensureLoaded().