class toResultItem

Display the first row of a query with each column with a separate label. More...

Definition#include <toresultitem.h>
InheritsQScrollView (qt) [public ], toResult [public ]
Inherited byresultColsEdit, toResultResources
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Methods


Detailed Description

Display the first row of a query with each column with a separate label. If the label of the item is a single '-' character the data is treated as a horizontal label (Not bold or sunken), and the label is not printed.

void  start (void)

start

[protected]

Start new query, hide all widgets.

void  addItem (const QString &title,const QString &value)

addItem

[protected]

Add a new widget.

Parameters:
titleTitle of this value.
valueValue.

void  done (void)

done

[protected]

Done with adding queries.

void  resizeEvent (QResizeEvent *e)

resizeEvent

[protected virtual]

Reimplemented for internal reasons.

Reimplemented from QScrollView.

 toResultItem (int num,bool readable,QWidget *parent,const char *name=NULL)

toResultItem

Create widget.

Parameters:
numNumber of columns to arrange data in.
readableIndicate if columns are to be made more readable. This means that the descriptions are capitalised and '_' are converted to ' '.
parentParent of list.
nameName of widget.

 toResultItem (int num,QWidget *parent,const char *name=NULL)

toResultItem

Create widget. Readable columns by default.

Parameters:
numNumber of columns to arrange data in.
parentParent of list.
nameName of widget.

 ~toResultItem (void)

~toResultItem

Destroy object

void  showTitle (bool val)

showTitle

Set if titles are to be shown.

Parameters:
valIf titles are to be shown.

void  alignRight (bool val)

alignRight

Set if labels are to be aligned right.

Parameters:
valIf labels are to be aligned right.

void  dataFont (const QFont &val)

dataFont

Set the font to display data with.

QWidgetcreateTitle (QWidget *parent)

createTitle

[virtual]

Create title widget.

Parameters:
parentParent of widget.

Returns: Title widget created.

QWidgetcreateValue (QWidget *parent)

createValue

[virtual]

Create value widget.

Parameters:
parentParent of widget.

Returns: Title widget created.

void  setTitle (QWidget *widget,const QString &title,const QString &value)

setTitle

[virtual]

Set value of title widget.

Parameters:
widgetWidget to use for title.
titleThe title of the new widget pair.
valueVaue of new title widget.

void  setValue (QWidget *widget,const QString &title,const QString &value)

setValue

[virtual]

Set value of value widget.

Parameters:
widgetWidget to use for value.
titleThe title of the new widget pair.
valueVaue of new title widget.

void  query (const QString &sql,const toQList &param)

query

[virtual]

Reimplemented for internal reasons.

Reimplemented from toResult.

bool  canHandle (toConnection &)

canHandle

[virtual]

Handle any connection

Reimplemented from toResult.

void  setSQL (const QString &sql)

setSQL

Set the SQL statement of this list

Parameters:
sqlString containing statement.

Reimplemented from toResult.

void  setSQL (const toSQL &sql)

setSQL

Set the SQL statement of this list. This will also affect Name.

Parameters:
sqlSQL containing statement.

Reimplemented from toResult.

void  query (const QString &sql)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  query (const toSQL &sql)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  query (const toSQL &sql,toQList &par)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  refresh (void)

refresh

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1)

changeParams

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1,const QString &Param2)

changeParams

[virtual slot]

Reimplemented For internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1,const QString &Param2,const QString &Param3)

changeParams

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.