class toTemplateItem

This is an item that is contained in a template. More...

Definition#include <totemplate.h>
InheritstoResultViewItem [public ]
Inherited bytoTemplateSQL, toTemplateText
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This is an item that is contained in a template. It is different in the expand and collapse methods that are called when this item is expanded or collapsed from the template widget.

 toTemplateItem (toTemplateProvider &prov,QListView *parent,const QString &name)

toTemplateItem

Create an item.

Parameters:
provProvider for this item.
parentParent of this item.
nameContents of the first column of the item.

 toTemplateItem (toTemplateItem *parent,const QString &name,QListViewItem *after=NULL)

toTemplateItem

Create an item.

Parameters:
parentParent of this item.
nameContents of the first column of the item.
afterThe item to put this item after.

toTemplateProviderprovider (void)

provider

Get a reference to the provider of this item.

Returns: Reference to provider.

void  expand (void)

expand

[virtual]

This function is called when the item is expanded and can be used to fill up the list when needed.

void  selected (void)

selected

[virtual]

This function is called when the item is selected by doubleclicking or pressing return.

void  collapse (void)

collapse

[virtual]

This function is called when the item is collapsed.

QWidgetselectedWidget (QWidget *parent)

selectedWidget

[virtual]

This function can be used to return a widget that is displays extra information for this item. Return NULL if no widget is to be displayed. The widget will be deleted when this item is no longer shown.

void  setSelected (bool sel)

setSelected

[virtual]

Reimplemented for internal reasons.

Reimplemented from QListViewItem.