#include <dataobjecttablemodel.h>
Collaboration diagram for DataObjectTableModel:

Public Slots | ||||
| void | reset () | |||
| void | clear () | |||
| void | checkDirty () | |||
| void | rowChanged (DataObject *dobj) | |||
| Mark the corresponding row for this dataobject changed. | ||||
Public Member Functions | ||||
| DataObjectTableModel (DataObject *headerModel=0) | ||||
| ||||
| virtual const DataObject * | operator[] (int rowNum) const | |||
| ||||
| virtual DataObject * | operator[] (int rowNum) | |||
| virtual bool | insertRecord (DataObject *newRecord, int position=-1, const QModelIndex &=QModelIndex()) | |||
| Inserts a new record into the table. | ||||
| QStringList | toStringList () const | |||
| ||||
| QString | toString () const | |||
| virtual int | fieldIndex (QString fieldName) const | |||
| virtual | ~DataObjectTableModel () | |||
| Deletes all of the contained DataObjects which were added to this model. | ||||
| int | rowCount (const QModelIndex &parent=QModelIndex()) const | |||
| int | columnCount (const QModelIndex &parent=QModelIndex()) const | |||
| QVariant | data (const QModelIndex &index, int role) const | |||
| QVariant | headerData (int section, Qt::Orientation orientation=Qt::Horizontal, int role=DisplayRole) const | |||
| ItemFlags | flags (const QModelIndex &index) const | |||
| bool | setData (const QModelIndex &index, const QVariant &value, int role=EditRole) | |||
| bool | insertRows (int position, int rows, const QModelIndex &index=QModelIndex()) | |||
| bool | removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) | |||
| DataObjectTableModel & | operator<< (DataObject *newObj) | |||
| A convenience function for insertRecord. | ||||
Protected Member Functions | ||||
| void | extractHeaders (DataObject *hmodel) | |||
Protected Attributes | ||||
| QList< DataObject * > | m_Data | |||
| QList< bool > | m_isEditable | |||
| QStringList | m_Headers | |||
| DataObject * | m_Original | |||
| QTimer | m_Timer | |||
| bool | m_Dirty | |||
It is demo-ware - not tested recommended for reuse in commercial software.
Definition at line 23 of file dataobjecttablemodel.h.
| bool DataObjectTableModel::insertRecord | ( | DataObject * | newRecord, | |
| int | position = -1, |
|||
| const QModelIndex & | = QModelIndex() | |||
| ) | [virtual] |
Inserts a new record into the table.
| newRecord | - a new DataObject to be interpreted as a row. | |
| position | - the row number it should be inserted at. If -1, it is appended to the end. |
Definition at line 103 of file dataobjecttablemodel.cpp.
References m_Data, and rowCount().
Here is the call graph for this function:

1.5.1