Signals | Public Member Functions

AbstractTableModel Class Reference

Abstract model providing information about rows of a table. More...

#include <rdb/abstracttablemodel.h>

List of all members.

Signals

Public Member Functions


Detailed Description

Abstract model providing information about rows of a table.

One or more table models can be added to a TableItemModel in order to populate a list or tree view.

Inherited classes must implement at least the columnName() an text() methods.

See also:
TableItemModel

Constructor & Destructor Documentation

AbstractTableModel ( QObject *  parent  ) 

Constructor.

Parameters:
parent The parent object.

Destructor.


Member Function Documentation

virtual QString columnName ( int  column  )  const [pure virtual]

Return the header text of the given column.

virtual QString text ( int  id,
int  column 
) const [pure virtual]

Return the text of a given column of a row.

This method must be implemented in the inherited class.

QPixmap icon ( int  id,
int  column 
) const [virtual]

Return the icon of a given column of a row.

The default implementation returns an empty pixmap.

QString toolTip ( int  id,
int  column 
) const [virtual]

Return the tool tip of a given row.

The default implementation returns an empty string.

int compare ( int  id1,
int  id2,
int  column 
) const [virtual]

Compare two rows using given column.

The default implementation compares the texts using QString::localeAwareCompare().

void dataChanged (  )  [signal]

Emit this signal when the model needs to be updated.

This signal is automatically connected to TableItemModel::updateData().