# class toResultItem | Display the first row of a query with each column with a separate label. More...
Definition | `#include <toresultitem.h>`
Inherits | QScrollView (qt) [public ], toResult [public ]
Inherited by | toResultResources
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- toResultItem (int num,bool readable,QWidget *parent,const char *name=NULL)
- toResultItem (int num,QWidget *parent,const char *name=NULL)
- ~toResultItem (void)
- void showTitle (bool val)
- void alignRight (bool val)
- void dataFont (const QFont &val)
- virtual void query (const QString &sql,const toQList ¶m)
- virtual bool canHandle (toConnection &)
- void setSQL (const QString &sql)
- void setSQL (toSQL &sql)
- void query (const QString &sql)
- void query (toSQL &sql)

#### Public Slots

- virtual void refresh (void)
- virtual void changeParams (const QString &Param1)
- virtual void changeParams (const QString &Param1,const QString &Param2)
- virtual void changeParams (const QString &Param1,const QString &Param2,const QString &Param3)

#### Protected Methods

- void start (void)
- void addItem (const QString &title,const QString &value)
- void done (void)

## 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:

title | Title of this value.
value | Value.

void done (void) | ### done

[protected]

Done with adding queries.

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

Create widget.

Parameters:

num | Number of columns to arrange data in.
readable | Indicate if columns are to be made more readable. This means that the descriptions are capitalised and '_' are converted to ' '.
parent | Parent of list.
name | Name of widget.

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

Create widget. Readable columns by default.

Parameters:

num | Number of columns to arrange data in.
parent | Parent of list.
name | Name of widget.

~toResultItem (void) | ### ~toResultItem

Destroy object

void showTitle (bool val) | ### showTitle

Set if titles are to be shown.

Parameters:

val | If titles are to be shown.

void alignRight (bool val) | ### alignRight

Set if labels are to be aligned right.

Parameters:

val | If labels are to be aligned right.

void dataFont (const QFont &val) | ### dataFont

Set the font to display data with.

void query (const QString &sql,const toQList ¶m) | ### 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:

sql | String containing statement.

Reimplemented from toResult.

void setSQL (toSQL &sql) | ### setSQL

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

Parameters:

sql | SQL containing statement.

Reimplemented from toResult.

void query (const QString &sql) | ### query

Set new SQL and run query.

Parameters:

sql | New sql.

See also: setSQL

Reimplemented from toResult.

void query (toSQL &sql) | ### query

Set new SQL and run query.

Parameters:

sql | New 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.