Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos
Referencia de la Clase ErrorItem

#include <outputwindow.h>

Diagrama de herencias de ErrorItem
QListViewItem Qt Qt

Lista de todos los miembros.

Tipos públicos

enum  Type { Error, Warning }

Métodos públicos

 ErrorItem (QListView *parent, QListViewItem *after, const QString &message, int line, const QString &locationString, QObject *locationObject)
void paintCell (QPainter *, const QColorGroup &cg, int column, int width, int alignment)
void setRead (bool b)
QObjectlocation () const
int line () const

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
Error 
Warning 

Documentación del constructor y destructor

ErrorItem::ErrorItem ( QListView parent,
QListViewItem after,
const QString message,
int  line,
const QString locationString,
QObject locationObject 
)

Documentación de las funciones miembro

int ErrorItem::line ( ) const [inline]
QObject* ErrorItem::location ( ) const [inline]
void ErrorItem::paintCell ( QPainter p,
const QColorGroup cg,
int  column,
int  width,
int  align 
) [virtual]

This virtual function paints the contents of one column of an item and aligns it as described by align.

p is a QPainter open on the relevant paint device. p is translated so (0, 0) is the top-left pixel in the cell and width-1, height()-1 is the bottom-right pixel in the cell. The other properties of p (pen, brush, etc) are undefined. cg is the color group to use. column is the logical column number within the item that is to be painted; 0 is the column which may contain a tree.

This function may use QListView::itemMargin() for readability spacing on the left and right sides of data such as text, and should honor isSelected() and QListView::allColumnsShowFocus().

If you reimplement this function, you should also reimplement width().

The rectangle to be painted is in an undefined state when this function is called, so you must draw on all the pixels. The painter p has the right font on entry.

Ver también:
paintBranches(), QListView::drawContentsOffset()

Reimplementado de QListViewItem.

void ErrorItem::setRead ( bool  b) [inline]

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'