#include <QtCore/qglobal.h>
#include <QtCore/qsize.h>
#include <QtCore/qlist.h>
#include <QtGui/qpixmap.h>
Go to the source code of this file.
|
class | QIcon |
| The QIcon class provides scalable icons in different modes and states. More...
|
|
◆ operator<<()
Definition at line 1096 of file qicon.cpp.
Referenced by QIcon::data_ptr().
1099 if (icon.isNull()) {
1102 if (icon.d->engine_version > 1) {
1108 qWarning(
"QIcon: Cannot stream QIconEngine. Use QIconEngineV2 instead.");
1112 if (icon.isNull()) {
1118 for (
int i=0; i < num_entries; ++i) {
1127 s <<
QPixmap(icon.pixmap(22,22));
virtual QString key() const
Returns a key that identifies this icon engine.
QVector< QPixmapIconEngineEntry > pixmaps
The QString class provides a Unicode character string.
Q_CORE_EXPORT void qWarning(const char *,...)
The QIconEngineV2 class provides an abstract base class for QIcon renderers.
const T & at(int i) const
Returns the item at index position i in the vector.
virtual bool write(QDataStream &out) const
Writes the contents of this engine to the QDataStream out.
The QPixmap class is an off-screen image representation that can be used as a paint device...
int size() const
Returns the number of items in the vector.
◆ operator>>()
Definition at line 1144 of file qicon.cpp.
Referenced by QIcon::data_ptr().
1153 icon.d->engine = engine;
1158 icon.d->engine = engine;
1160 #if !defined (QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS) 1179 for (
int i=0; i < num_entries; ++i) {
State
This enum describes the state for which a pixmap is intended to be used.
The QString class provides a Unicode character string.
QLatin1String("/iconengines")
Mode
This enum type describes the mode for which a pixmap is intended to be used.
virtual bool read(QDataStream &in)
Reads icon engine contents from the QDataStream in.
The QIconEngineV2 class provides an abstract base class for QIcon renderers.
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.
static QString fileName(const QString &fileUrl)
The QIcon class provides scalable icons in different modes and states.
◆ Q_DECLARE_TYPEINFO()