OSB_GUI::GroupItem Class Reference

Inheritance diagram for OSB_GUI::GroupItem:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::GroupItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

List view item with optional fixed position.

The group item's relative position to its siblings is determined by the value of key_. If the key is -1 the item is sorted using the standard Qt comparision.

Definition at line 113 of file tolists.h.

Public Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::GroupItem::GroupItem ( QListView parent,
int  key,
const QString &  label 
)

Constructor with listview as parent, key and text.

OSB_GUI::GroupItem::GroupItem ( QListViewItem parent,
int  key,
const QString &  label 
)

Constructor with listview item as parent, key and text.

OSB_GUI::GroupItem::GroupItem ( QListViewItem parent  )  [explicit]

Constructor with listview item as parent.

It initializes key_ with -1, i.e., normal sorting.


Member Function Documentation

virtual int OSB_GUI::GroupItem::compare ( QListViewItem item,
int  col,
bool  asc 
) const [private, virtual]

Compare with another listview item.

Compares key_ of both group items if item is a group item and neither key is -1,
calls QListViewItem::compare(item, col, asc) otherwise.

Reimplemented in OSB_GUI::ToGroupItem.

virtual void OSB_GUI::GroupItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  col,
int  width,
int  align 
) [private, virtual]

Paint listview item with a colored line above.


Member Data Documentation

int OSB_GUI::GroupItem::key_ [private]

The sort key, -1 if normal sorting applies.

Definition at line 155 of file tolists.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:21:52 2006 for OSB Library by  doxygen 1.4.7