Qt 4.8
Public Functions | Public Variables | List of all members
QPixmapIconEngineEntry Struct Reference

#include <qicon_p.h>

Public Functions

bool isNull () const
 
 QPixmapIconEngineEntry ()
 
 QPixmapIconEngineEntry (const QPixmap &pm, QIcon::Mode m=QIcon::Normal, QIcon::State s=QIcon::Off)
 
 QPixmapIconEngineEntry (const QString &file, const QSize &sz=QSize(), QIcon::Mode m=QIcon::Normal, QIcon::State s=QIcon::Off)
 

Public Variables

QString fileName
 
QIcon::Mode mode
 
QPixmap pixmap
 
QSize size
 
QIcon::State state
 

Detailed Description

Definition at line 93 of file qicon_p.h.

Constructors and Destructors

◆ QPixmapIconEngineEntry() [1/3]

QPixmapIconEngineEntry::QPixmapIconEngineEntry ( )
inline

Definition at line 95 of file qicon_p.h.

◆ QPixmapIconEngineEntry() [2/3]

QPixmapIconEngineEntry::QPixmapIconEngineEntry ( const QPixmap pm,
QIcon::Mode  m = QIcon::Normal,
QIcon::State  s = QIcon::Off 
)
inline

Definition at line 96 of file qicon_p.h.

97  :pixmap(pm), size(pm.size()), mode(m), state(s){}
QSize size() const
Returns the size of the pixmap.
Definition: qpixmap.cpp:661
QIcon::State state
Definition: qicon_p.h:104
QIcon::Mode mode
Definition: qicon_p.h:103

◆ QPixmapIconEngineEntry() [3/3]

QPixmapIconEngineEntry::QPixmapIconEngineEntry ( const QString file,
const QSize sz = QSize(),
QIcon::Mode  m = QIcon::Normal,
QIcon::State  s = QIcon::Off 
)
inline

Definition at line 98 of file qicon_p.h.

99  :fileName(file), size(sz), mode(m), state(s){}
QIcon::State state
Definition: qicon_p.h:104
QIcon::Mode mode
Definition: qicon_p.h:103

Functions

◆ isNull()

bool QPixmapIconEngineEntry::isNull ( ) const
inline

Definition at line 105 of file qicon_p.h.

105 {return (fileName.isEmpty() && pixmap.isNull()); }
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
Definition: qpixmap.cpp:615

Properties

◆ fileName

QString QPixmapIconEngineEntry::fileName

◆ mode

QIcon::Mode QPixmapIconEngineEntry::mode

◆ pixmap

QPixmap QPixmapIconEngineEntry::pixmap

◆ size

QSize QPixmapIconEngineEntry::size

◆ state

QIcon::State QPixmapIconEngineEntry::state

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