Eneboo - Documentación para desarrolladores
Métodos públicos | Atributos públicos estáticos | Métodos protegidos
Referencia de la Clase QListBoxPixmap

The QListBoxPixmap class provides list box items with a pixmap and optional text. Más...

#include <qlistbox.h>

Diagrama de herencias de QListBoxPixmap
QListBoxItem QListBoxItem

Lista de todos los miembros.

Métodos públicos

 QListBoxPixmap (QListBox *listbox, const QPixmap &)
 QListBoxPixmap (const QPixmap &)
 QListBoxPixmap (QListBox *listbox, const QPixmap &pix, QListBoxItem *after)
 QListBoxPixmap (QListBox *listbox, const QPixmap &, const QString &)
 QListBoxPixmap (const QPixmap &, const QString &)
 QListBoxPixmap (QListBox *listbox, const QPixmap &pix, const QString &, QListBoxItem *after)
 ~QListBoxPixmap ()
const QPixmappixmap () const
int height (const QListBox *) const
int width (const QListBox *) const
int rtti () const
 QListBoxPixmap (QListBox *listbox, const QPixmap &)
 QListBoxPixmap (const QPixmap &)
 QListBoxPixmap (QListBox *listbox, const QPixmap &pix, QListBoxItem *after)
 QListBoxPixmap (QListBox *listbox, const QPixmap &, const QString &)
 QListBoxPixmap (const QPixmap &, const QString &)
 QListBoxPixmap (QListBox *listbox, const QPixmap &pix, const QString &, QListBoxItem *after)
 ~QListBoxPixmap ()
const QPixmappixmap () const
int height (const QListBox *) const
int width (const QListBox *) const
int rtti () const

Atributos públicos estáticos

static int RTTI = 2

Métodos protegidos

void paint (QPainter *)
void paint (QPainter *)

Descripción detallada

The QListBoxPixmap class provides list box items with a pixmap and optional text.

Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap.

Ver también:
QListBox, QListBoxItem

Documentación del constructor y destructor

QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pixmap 
)

Constructs a new list box item in list box listbox showing the pixmap pixmap.

QListBoxPixmap::QListBoxPixmap ( const QPixmap pixmap)

Constructs a new list box item showing the pixmap pixmap.

QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pixmap,
QListBoxItem after 
)

Constructs a new list box item in list box listbox showing the pixmap pixmap. The item gets inserted after the item after, or at the beginning if after is 0.

QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pix,
const QString text 
)

Constructs a new list box item in list box listbox showing the pixmap pix and the text text.

QListBoxPixmap::QListBoxPixmap ( const QPixmap pix,
const QString text 
)

Constructs a new list box item showing the pixmap pix and the text to text.

QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pix,
const QString text,
QListBoxItem after 
)

Constructs a new list box item in list box listbox showing the pixmap pix and the string text. The item gets inserted after the item after, or at the beginning if after is 0.

QListBoxPixmap::~QListBoxPixmap ( )

Destroys the item.

QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap  
)
QListBoxPixmap::QListBoxPixmap ( const QPixmap )
QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pix,
QListBoxItem after 
)
QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap ,
const QString  
)
QListBoxPixmap::QListBoxPixmap ( const QPixmap ,
const QString  
)
QListBoxPixmap::QListBoxPixmap ( QListBox listbox,
const QPixmap pix,
const QString ,
QListBoxItem after 
)
QListBoxPixmap::~QListBoxPixmap ( )

Documentación de las funciones miembro

int QListBoxPixmap::height ( const QListBox lb) const [virtual]

Returns the height of the pixmap in list box lb.

Ver también:
paint(), width()

Reimplementado de QListBoxItem.

int QListBoxPixmap::height ( const QListBox lb) const [virtual]

Implement this function to return the height of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.

The default implementation returns {QApplication::globalStrut()}'s height.

Ver también:
paint(), width()

Reimplementado de QListBoxItem.

void QListBoxPixmap::paint ( QPainter painter) [protected, virtual]

Draws the pixmap using painter.

Implementa QListBoxItem.

void QListBoxPixmap::paint ( QPainter p) [protected, virtual]

Implement this function to draw your item. The painter, p, is already open for painting.

Ver también:
height(), width()

Implementa QListBoxItem.

const QPixmap* QListBoxPixmap::pixmap ( ) const [inline, virtual]

Returns the pixmap associated with the item, or 0 if there isn't one.

The default implementation returns 0.

Reimplementado de QListBoxItem.

const QPixmap * QListBoxPixmap::pixmap ( ) const [inline, virtual]

Returns the pixmap associated with the item.

Reimplementado de QListBoxItem.

int QListBoxPixmap::rtti ( ) const [virtual]

Returns 0.

Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.

Reimplementado de QListBoxItem.

int QListBoxPixmap::rtti ( ) const [virtual]

Returns 2.

Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.

Reimplementado de QListBoxItem.

int QListBoxPixmap::width ( const QListBox lb) const [virtual]

Returns the width of the pixmap plus some margin in list box lb.

Ver también:
paint(), height()

Reimplementado de QListBoxItem.

int QListBoxPixmap::width ( const QListBox lb) const [virtual]

Reimplement this function to return the width of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.

The default implementation returns {QApplication::globalStrut()}'s width.

Ver también:
paint(), height()

Reimplementado de QListBoxItem.


Documentación de los datos miembro

static int QListBoxPixmap::RTTI = 2 [static]

Reimplementado de QListBoxItem.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'