|
|
An item to display in a toListView or toResultView. They differ from normal QListViewItems in that they can have a tooltip and actually contain more text than is displayed in the cell of the listview.
| toResultViewCheck (QListView *parent,const QString &text,QCheckListItem::Type type=Controller)
| toResultViewCheck |
Create a new item.
Parameters:
| parent | Parent list view. |
| text | Text of first column. |
| type | Type of check on this item. |
| toResultViewCheck (QListViewItem *parent,const QString &text,QCheckListItem::Type type=Controller)
| toResultViewCheck |
Create a new item.
Parameters:
| parent | Parent item. |
| text | Text of first column. |
| type | Type of check on this item. |
| void paintCell (QPainter * p,const QColorGroup & cg,int column,int width,int align)
| paintCell |
[virtual]
Reimplemented for internal reasons.
Reimplemented from QCheckListItem.
| QString text (int col)
| text |
[const virtual]
Reimplemented for internal reasons.
Reimplemented from QCheckListItem.
| QString key (int col,bool)
| key |
[const virtual]
String to sort the data on. This is reimplemented so that numbers are sorted as numbers and not as strings.
Parameters:
| col | Column |
| asc | Wether to sort ascending or not. |
| int width (const QFontMetrics &fm, const QListView *top, int column)
| width |
[const virtual]
Reimplemented for internal reasons.
Reimplemented from QCheckListItem.
| QString allText (int col)
| allText |
[const virtual]
Get all text for this item. This is used for copying, drag & drop and memo editing etc.
Parameters:
| col | Column. |
Returns: All of the text.
| QString tooltip (int col)
| tooltip |
[const virtual]
Get the text to be displayed as tooltip for this item.
Parameters:
| col | Column. |
Returns: The text to display as tooltip.