Eneboo - Documentación para desarrolladores
|
The QListBoxPixmap class provides list box items with a pixmap and optional text. Más...
#include <qlistbox.h>
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 QPixmap * | pixmap () 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 QPixmap * | pixmap () 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 *) |
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.
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.
Constructs a new list box item in list box listbox showing the pixmap pix and the text 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 | ( | const QPixmap & | ) |
QListBoxPixmap::QListBoxPixmap | ( | QListBox * | listbox, |
const QPixmap & | pix, | ||
QListBoxItem * | after | ||
) |
QListBoxPixmap::QListBoxPixmap | ( | QListBox * | listbox, |
const QPixmap & | pix, | ||
const QString & | , | ||
QListBoxItem * | after | ||
) |
QListBoxPixmap::~QListBoxPixmap | ( | ) |
Returns the height of the pixmap in list box lb.
Reimplementado de QListBoxItem.
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.
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.
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.
Returns the width of the pixmap plus some margin in list box lb.
Reimplementado de QListBoxItem.
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.
Reimplementado de QListBoxItem.
static int QListBoxPixmap::RTTI = 2 [static] |
Reimplementado de QListBoxItem.