Ksetiwatch API Documentation


ColorListViewItem Class Reference

A customized QListViewItem with additional features. More...

#include <poplistview.h>

Inherits QListViewItem.

Inherited by AnalysisListViewItem, DataInfoListViewItem, SigListViewItem, SpikeListViewItem, UserInfoListViewItem, and WUListViewItem.

Inheritance diagram for ColorListViewItem:

Inheritance graph
[legend]
Collaboration diagram for ColorListViewItem:

Collaboration graph
[legend]
List of all members.

Public Methods

 ColorListViewItem (QListView *parent, const QColor &color=QColor(), bool separator=false)
 ColorListViewItem (QListView *parent, QListViewItem *after, const QColor &color=QColor(), bool separator=false)
 ColorListViewItem (QListViewItem *parent, const QColor &color=QColor(), bool separator=false)
 ColorListViewItem (QListViewItem *parent, QListViewItem *after, const QColor &color=QColor(), bool separator=false)
 ~ColorListViewItem ()

Protected Methods

void init (QListView *parent, const QColor &color)
virtual void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)

Detailed Description

A customized QListViewItem with additional features.

Adds grid lines and colored text.

Warning:
Only to be used with the popListView class.

Definition at line 29 of file poplistview.h.


Constructor & Destructor Documentation

ColorListViewItem::ColorListViewItem QListView   parent,
const QColor   color = QColor(),
bool    separator = false
 

The constructor.

Parameters:
parent  The parent list view.
color  The color of the text in the list view item. If no color is specified, the normal text color of the parent widget is taken.
separator  If true, a thick line is drawn at the top edge of the item to separate it from othe list view items.

Definition at line 24 of file poplistview.cpp.

References init().

ColorListViewItem::ColorListViewItem QListView   parent,
QListViewItem   after,
const QColor   color = QColor(),
bool    separator = false
 

The constructor.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
parent  The parent list view.
after  The list view item after which the new item will be sorted into the list.
color  The color of the text in the list view item. If no color is specified, the normal text color of the parent widget is taken.
separator  If true, a thick line is drawn at the top edge of the item to separate it from the list view items.

Definition at line 32 of file poplistview.cpp.

References init().

ColorListViewItem::ColorListViewItem QListViewItem   parent,
const QColor   color = QColor(),
bool    separator = false
 

The constructor.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
parent  The parent list view item.
color  The color of the text in the list view item. If no color is specified, the normal text color of the parent widget is taken.
separator  If true, a thick line is drawn at the top edge of the item to separate it from othe list view items.

Definition at line 40 of file poplistview.cpp.

References init(), and QListViewItem::listView().

ColorListViewItem::ColorListViewItem QListViewItem   parent,
QListViewItem   after,
const QColor   color = QColor(),
bool    separator = false
 

The constructor.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
parent  The parent list view item.
after  The list view item after which the new item will be sorted into the list.
color  The color of the text in the list view item. If no color is specified, the normal text color of the parent widget is taken.
separator  If true, a thick line is drawn at the top edge of the item to separate it from the list view items.

Definition at line 48 of file poplistview.cpp.

References init(), and QListViewItem::listView().

ColorListViewItem::~ColorListViewItem  
 

The destructor.

Definition at line 56 of file poplistview.cpp.


Member Function Documentation

void ColorListViewItem::init QListView   parent,
const QColor   color
[protected]
 

Initializes the list view item.

Parameters:
parent  The parent list view.
color  The color of the text in the list view item.

Definition at line 61 of file poplistview.cpp.

References QWidget::colorGroup(), and QColor::isValid().

Referenced by ColorListViewItem().

void ColorListViewItem::paintCell QPainter   p,
const QColorGroup   cg,
int    column,
int    width,
int    align
[protected, virtual]
 

Reimplemented to allow customized painting of one column of an item.

Parameters:
p  A QPainter object open on the relevant paint device.
cg  The color group which is used for painting.
column  The column number within the item which is to be painted.
width  The width of the column.
align  The alignment of text within the column.

Reimplemented from QListViewItem.

Definition at line 71 of file poplistview.cpp.

References QListViewItem::height(), QPainter::lineTo(), QColorGroup::mid(), QPainter::moveTo(), QListViewItem::paintCell(), QColorGroup::setColor(), QPainter::setPen(), QPen::setWidth(), and QListViewItem::width().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:40 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002