List of all members | Properties | Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes
PoitemTableModel Class Reference

#include <poitemTableModel.h>

Inheritance diagram for PoitemTableModel:
QSqlRelationalTableModel QSqlTableModel QSqlQueryModel QAbstractTableModel QAbstractItemModel QObject

Properties

 objectName
 

Public Slots

virtual bool select ()
 
virtual void setCurrId (const int pId=-1)
 
virtual void setHeadId (const int pId=-1)
 
virtual void setItemId (const int pId=-1)
 
virtual void setTransDate (const QDate)
 
virtual bool submitAll ()
 

Public Member Functions

 PoitemTableModel (QObject *parent=0, QSqlDatabase=QSqlDatabase())
 
void beforeDelete (int row)
 
void beforeInsert (QSqlRecord &record)
 
void beforeUpdate (int row, QSqlRecord &record)
 
bool blockSignals (bool block)
 
virtual QModelIndex buddy (const QModelIndex &index) const
 
virtual bool canFetchMore (const QModelIndex &parent) const
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
virtual void clear ()
 
virtual int columnCount (const QModelIndex &index) const
 
void columnsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void columnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn)
 
void columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void columnsInserted (const QModelIndex &parent, int start, int end)
 
void columnsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn)
 
void columnsRemoved (const QModelIndex &parent, int start, int end)
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
virtual int currId () const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
QSqlDatabase database () const
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
EditStrategy editStrategy () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
virtual void fetchMore (const QModelIndex &parent)
 
int fieldIndex (const QString &fieldName) const
 
QString filter () const
 
findChild (const QString &name) const
 
QList< T > findChildren (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
virtual Qt::ItemFlags flags (const QModelIndex &) const
 
virtual bool hasChildren (const QModelIndex &parent) const
 
bool hasIndex (int row, int column, const QModelIndex &parent) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
void headerDataChanged (Qt::Orientation orientation, int first, int last)
 
virtual int headId () const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
bool insertColumn (int column, const QModelIndex &parent)
 
virtual bool insertColumns (int column, int count, const QModelIndex &parent)
 
bool insertRecord (int row, const QSqlRecord &record)
 
bool insertRow (int row, const QModelIndex &parent)
 
virtual bool insertRows (int row, int count, const QModelIndex &parent)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isDirty (const QModelIndex &index) const
 
virtual bool isDirty () const
 
bool isWidgetType () const
 
virtual QMap< int, QVariantitemData (const QModelIndex &index) const
 
virtual int itemId () const
 
void killTimer (int id)
 
QSqlError lastError () const
 
void layoutAboutToBeChanged ()
 
void layoutChanged ()
 
virtual QModelIndexList match (const QModelIndex &start, int role, const QVariant &value, int hits, QFlags< Qt::MatchFlag > flags) const
 
virtual const QMetaObjectmetaObject () const
 
virtual QMimeDatamimeData (const QModelIndexList &indexes) const
 
virtual QStringList mimeTypes () const
 
void modelAboutToBeReset ()
 
void modelReset ()
 
void moveToThread (QThread *targetThread)
 
const char * name (const char *defaultName) const
 
const char * name () const
 
QString objectName () const
 
QObjectparent () const
 
virtual QModelIndex parent (const QModelIndex &index) const =0
 
QSqlIndex primaryKey () const
 
void primeInsert (int row, QSqlRecord &record)
 
QVariant property (const char *name) const
 
QSqlQuery query () const
 
QSqlRecord record (int row) const
 
QSqlRecord record () const
 
QSqlRelation relation (int column) const
 
virtual QSqlTableModelrelationModel (int column) const
 
void removeChild (QObject *object)
 
bool removeColumn (int column, const QModelIndex &parent)
 
virtual bool removeColumns (int column, int count, const QModelIndex &parent)
 
void removeEventFilter (QObject *obj)
 
virtual bool removeRow (int, const QModelIndex &=QModelIndex())
 
virtual bool removeRows (int row, int count, const QModelIndex &parent)
 
virtual void revert ()
 
void revertAll ()
 
virtual void revertRow (int row)
 
const QHash< int, QByteArray > & roleNames () const
 
virtual int rowCount (const QModelIndex &parent) const
 
void rowsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void rowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void rowsInserted (const QModelIndex &parent, int start, int end)
 
void rowsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
 
void rowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role)
 
virtual void setEditStrategy (EditStrategy strategy)
 
virtual void setFilter (const QString &filter)
 
virtual bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role)
 
virtual bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles)
 
void setJoinMode (QSqlRelationalTableModel::JoinMode joinMode)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
void setQuery (const QString &query, const QSqlDatabase &db)
 
bool setRecord (int row, const QSqlRecord &record)
 
virtual void setRelation (int column, const QSqlRelation &relation)
 
virtual void setSort (int column, Qt::SortOrder order)
 
void setSupportedDragActions (QFlags< Qt::DropAction > actions)
 
virtual void setTable (const QString &table)
 
QModelIndex sibling (int row, int column, const QModelIndex &index) const
 
bool signalsBlocked () const
 
virtual void sort (int column, Qt::SortOrder order)
 
virtual QSize span (const QModelIndex &index) const
 
int startTimer (int interval)
 
virtual bool submit ()
 
Qt::DropActions supportedDragActions () const
 
virtual Qt::DropActions supportedDropActions () const
 
QString tableName () const
 
QThreadthread () const
 
virtual QDate transDate () const
 

Static Public Member Functions

bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Public Attributes

int _vendid
 
bool _vendrestrictpurch
 

Protected Slots

virtual void markDirty (QModelIndex, QModelIndex)
 

Protected Member Functions

void beginInsertColumns (const QModelIndex &parent, int first, int last)
 
void beginInsertRows (const QModelIndex &parent, int first, int last)
 
bool beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild)
 
bool beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild)
 
void beginRemoveColumns (const QModelIndex &parent, int first, int last)
 
void beginRemoveRows (const QModelIndex &parent, int first, int last)
 
void beginResetModel ()
 
void changePersistentIndex (const QModelIndex &from, const QModelIndex &to)
 
void changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to)
 
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
QModelIndex createIndex (int row, int column, void *ptr) const
 
QModelIndex createIndex (int row, int column, int id) const
 
QModelIndex createIndex (int row, int column, quint32 id) const
 
virtual void customEvent (QEvent *event)
 
virtual bool deleteRowFromTable (int row)
 
virtual void disconnectNotify (const char *signal)
 
void endInsertColumns ()
 
void endInsertRows ()
 
void endMoveColumns ()
 
void endMoveRows ()
 
void endRemoveColumns ()
 
void endRemoveRows ()
 
void endResetModel ()
 
QModelIndex indexInQuery (const QModelIndex &item) const
 
virtual bool insertRowIntoTable (const QSqlRecord &)
 
virtual QString orderByClause () const
 
QModelIndexList persistentIndexList () const
 
virtual void queryChange ()
 
int receivers (const char *signal) const
 
void reset ()
 
void resetInternalData ()
 
virtual QString selectStatement () const
 
QObjectsender () const
 
int senderSignalIndex () const
 
void setLastError (const QSqlError &error)
 
void setPrimaryKey (const QSqlIndex &key)
 
void setQuery (const QSqlQuery &query)
 
void setRoleNames (const QHash< int, QByteArray > &roleNames)
 
virtual void timerEvent (QTimerEvent *event)
 
virtual bool updateRowInTable (int, const QSqlRecord &)
 
virtual bool validRow (QSqlRecord &)
 

Static Protected Member Functions

QByteArray normalizeSignalSlot (const char *signalSlot)
 

Protected Attributes

QString _selectStatement
 

Constructor & Destructor Documentation

PoitemTableModel::PoitemTableModel ( QObject parent = 0,
QSqlDatabase  db = QSqlDatabase() 
)

Member Function Documentation

virtual int PoitemTableModel::currId ( ) const
inlinevirtual
Qt::ItemFlags PoitemTableModel::flags ( const QModelIndex index) const
virtual

Reimplemented from QSqlTableModel.

virtual int PoitemTableModel::headId ( ) const
inlinevirtual
bool PoitemTableModel::insertRowIntoTable ( const QSqlRecord record)
protectedvirtual

Reimplemented from QSqlRelationalTableModel.

bool PoitemTableModel::isDirty ( ) const
virtual
virtual int PoitemTableModel::itemId ( ) const
inlinevirtual
void PoitemTableModel::markDirty ( QModelIndex  ,
QModelIndex   
)
protectedvirtualslot
bool PoitemTableModel::removeRow ( int  row,
const QModelIndex parent = QModelIndex() 
)
virtual
bool PoitemTableModel::select ( )
virtualslot
QString PoitemTableModel::selectStatement ( ) const
protectedvirtual

Reimplemented from QSqlRelationalTableModel.

void PoitemTableModel::setCurrId ( const int  pId = -1)
virtualslot
void PoitemTableModel::setHeadId ( const int  pId = -1)
virtualslot
void PoitemTableModel::setItemId ( const int  pId = -1)
virtualslot
void PoitemTableModel::setTransDate ( const QDate  pDate)
virtualslot
bool PoitemTableModel::submitAll ( )
virtualslot
virtual QDate PoitemTableModel::transDate ( ) const
inlinevirtual
bool PoitemTableModel::updateRowInTable ( int  row,
const QSqlRecord record 
)
protectedvirtual

Reimplemented from QSqlRelationalTableModel.

bool PoitemTableModel::validRow ( QSqlRecord record)
protectedvirtual

Member Data Documentation

QString PoitemTableModel::_selectStatement
protected
int PoitemTableModel::_vendid
bool PoitemTableModel::_vendrestrictpurch

The documentation for this class was generated from the following files:

Generated on Mon Dec 1 2014 xTuple ERP Programmer Reference, Version 4.8.0 doxygen 1.8.7