Main Page | Class List | File List | Class Members

QjListBoxPixmap Class Reference

The JPixmapItem is a listbox item showing a pixmap and a text. The location of the pixmap in relation to the text can be altered. More...

#include <qjlistboxpixmap.h>

List of all members.

Public Types

enum  PixmapLocation { Above, Under, Left, Right }

Public Member Functions

 QjListBoxPixmap (PixmapLocation location, const QPixmap &pixmap, const QString &text, QListBox *listbox=0)
 QjListBoxPixmap (PixmapLocation location, const QPixmap &pixmap, const QString &text, QListBox *listbox, QListBoxItem *after)
PixmapLocation location () const
void setLocation (PixmapLocation)
const QPixmap * pixmap () const
void setPixmap (const QPixmap &pixmap)
int height (const QListBox *lb) const
int width (const QListBox *lb) const

Protected Member Functions

void paint (QPainter *p)


Detailed Description

The JPixmapItem is a listbox item showing a pixmap and a text. The location of the pixmap in relation to the text can be altered.

jpmi.png
The location of the pixmap in relation to the text can be altered using the location and setLocation members.


Member Enumeration Documentation

enum QjListBoxPixmap::PixmapLocation
 

Specifies the location of the pixmap in relation to the text.

Enumeration values:
Above  The pixmap is above the text.
Under  The pixmap is under the text.
Left  The pixmap is to the left of the text.
Right  The pixmap is to the right of the text.


Constructor & Destructor Documentation

QjListBoxPixmap::QjListBoxPixmap PixmapLocation  location,
const QPixmap &  pixmap,
const QString &  text,
QListBox *  listbox = 0
 

Creates a JPixmapItem.

QjListBoxPixmap::QjListBoxPixmap PixmapLocation  location,
const QPixmap &  pixmap,
const QString &  text,
QListBox *  listbox,
QListBoxItem *  after
 

Creates a JPixmapItem at a certain position in the listbox.


Member Function Documentation

QjListBoxPixmap::PixmapLocation QjListBoxPixmap::location  )  const
 

Returns the pixmap location in relation to the text.

const QPixmap * QjListBoxPixmap::pixmap  )  const
 

Returns the pixmap.

void QjListBoxPixmap::setLocation PixmapLocation   ) 
 

Sets the pixmap location in relation to the text. This does not generate a re-paint of the listbox.

void QjListBoxPixmap::setPixmap const QPixmap &  pixmap  ) 
 

Sets the pixmap. This does not generate a re-paint of the listbox.


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 14:25:47 2004 for JSeries by doxygen 1.3.7