

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.
| 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.
| 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.
int OSB_GUI::GroupItem::key_ [private] |
1.4.7