class toResultViewCheck

An item to display in a toListView or toResultView. More...

Definition#include <toresultview.h>
InheritsQCheckListItem (qt) [public ]
Inherited bytoResultViewMLCheck
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

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.

int  realWidth (const QFontMetrics &fm, const QListView *top, int column,const QString &txt)

realWidth

[protected const virtual]

QString  firstText (int col)

firstText

[protected const]

 toResultViewCheck (QListView *parent,const QString &text,QCheckListItem::Type type=Controller)

toResultViewCheck

Create a new item.

Parameters:
parentParent list view.
textText of first column.
typeType of check on this item.

 toResultViewCheck (QListViewItem *parent,const QString &text,QCheckListItem::Type type=Controller)

toResultViewCheck

Create a new item.

Parameters:
parentParent item.
textText of first column.
typeType of check on this item.

 toResultViewCheck (QListView *parent,QListViewItem *after,const QString &text,QCheckListItem::Type type=Controller)

toResultViewCheck

Create a new item.

Parameters:
parentParent list view.
afterAfter last item.
textText of first column.
typeType of check on this item.

 toResultViewCheck (QListViewItem *parent,QListViewItem *after,const QString &text,QCheckListItem::Type type=Controller)

toResultViewCheck

Create a new item.

Parameters:
parentParent item.
afterAfter last item.
textText of first column.
typeType of check on this item.

 ~toResultViewCheck ()

~toResultViewCheck

[virtual]

Reimplemented for internal reasons.

void  setText (int col,const QString &txt)

setText

[virtual]

Reimplemented for internal reasons.

void  setText (int col,const toQValue &val)

setText

[virtual]

Set from database.

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 asc)

key

[const virtual]

String to sort the data on. This is reimplemented so that numbers are sorted as numbers and not as strings.

Parameters:
colColumn
ascWether to sort ascending or not.

int  width (const QFontMetrics &, const QListView *, int col)

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:
colColumn.

Returns: All of the text.

QString  tooltip (int col)

tooltip

[const virtual]

Get the text to be displayed as tooltip for this item.

Parameters:
colColumn.

Returns: The text to display as tooltip.