List of all members | Public Member Functions
QSqlTableModelProto Class Reference

#include <qsqltablemodelproto.h>

Inheritance diagram for QSqlTableModelProto:
QObject QScriptable

Public Member Functions

 QSqlTableModelProto (QObject *parent)
 
Q_INVOKABLE void clear ()
 
Q_INVOKABLE QVariant data (const QModelIndex &idx, int role=Qt::DisplayRole) const
 
Q_INVOKABLE QSqlDatabase database () const
 
Q_INVOKABLE QSqlTableModel::EditStrategy editStrategy () const
 
Q_INVOKABLE int fieldIndex (const QString &fieldName) const
 
Q_INVOKABLE QString filter () const
 
Q_INVOKABLE Qt::ItemFlags flags (const QModelIndex &index) const
 
Q_INVOKABLE QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
Q_INVOKABLE bool insertRecord (int row, const QSqlRecord &record)
 
Q_INVOKABLE bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
Q_INVOKABLE bool isDirty () const
 
Q_INVOKABLE bool isDirty (const QModelIndex &index) const
 
Q_INVOKABLE QSqlIndex primaryKey () const
 
Q_INVOKABLE QSqlRecord record () const
 
Q_INVOKABLE QSqlRecord record (int row) const
 
Q_INVOKABLE bool removeColumns (int column, int count, const QModelIndex &parent=QModelIndex())
 
Q_INVOKABLE bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
Q_INVOKABLE void revertRow (int row)
 
Q_INVOKABLE int rowCount (const QModelIndex &parent=QModelIndex()) const
 
Q_INVOKABLE bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
Q_INVOKABLE void setEditStrategy (QSqlTableModel::EditStrategy strategy)
 
Q_INVOKABLE void setFilter (const QString &filter)
 
Q_INVOKABLE bool setRecord (int row, const QSqlRecord &record)
 
Q_INVOKABLE void setSort (int column, Qt::SortOrder order)
 
Q_INVOKABLE void setTable (const QString &tableName)
 
Q_INVOKABLE void sort (int column, Qt::SortOrder order)
 
Q_INVOKABLE QString tableName () const
 
Q_INVOKABLE QString toString () const
 

Constructor & Destructor Documentation

◆ QSqlTableModelProto()

QSqlTableModelProto::QSqlTableModelProto ( QObject parent)

Member Function Documentation

◆ clear()

void QSqlTableModelProto::clear ( )

◆ data()

QVariant QSqlTableModelProto::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const

◆ database()

QSqlDatabase QSqlTableModelProto::database ( ) const

◆ editStrategy()

QSqlTableModel::EditStrategy QSqlTableModelProto::editStrategy ( ) const

◆ fieldIndex()

int QSqlTableModelProto::fieldIndex ( const QString &  fieldName) const

◆ filter()

QString QSqlTableModelProto::filter ( ) const

◆ flags()

Qt::ItemFlags QSqlTableModelProto::flags ( const QModelIndex &  index) const

◆ headerData()

QVariant QSqlTableModelProto::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ insertRecord()

bool QSqlTableModelProto::insertRecord ( int  row,
const QSqlRecord &  record 
)

◆ insertRows()

bool QSqlTableModelProto::insertRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ isDirty() [1/2]

bool QSqlTableModelProto::isDirty ( ) const

◆ isDirty() [2/2]

bool QSqlTableModelProto::isDirty ( const QModelIndex &  index) const

◆ primaryKey()

QSqlIndex QSqlTableModelProto::primaryKey ( ) const

◆ record() [1/2]

QSqlRecord QSqlTableModelProto::record ( ) const

◆ record() [2/2]

QSqlRecord QSqlTableModelProto::record ( int  row) const

◆ removeColumns()

bool QSqlTableModelProto::removeColumns ( int  column,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ removeRows()

bool QSqlTableModelProto::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ revertRow()

void QSqlTableModelProto::revertRow ( int  row)

◆ rowCount()

int QSqlTableModelProto::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ setData()

bool QSqlTableModelProto::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

◆ setEditStrategy()

void QSqlTableModelProto::setEditStrategy ( QSqlTableModel::EditStrategy  strategy)

◆ setFilter()

void QSqlTableModelProto::setFilter ( const QString &  filter)

◆ setRecord()

bool QSqlTableModelProto::setRecord ( int  row,
const QSqlRecord &  record 
)

◆ setSort()

void QSqlTableModelProto::setSort ( int  column,
Qt::SortOrder  order 
)

◆ setTable()

void QSqlTableModelProto::setTable ( const QString &  tableName)

◆ sort()

void QSqlTableModelProto::sort ( int  column,
Qt::SortOrder  order 
)

◆ tableName()

QString QSqlTableModelProto::tableName ( ) const

◆ toString()

QString QSqlTableModelProto::toString ( ) const

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17