XSqlTableModel Class Reference

#include <xsqltablemodel.h>

List of all members.

Public Types

enum  FormatFlags {
  Money, Qty, Curr, Percent,
  Cost, QtyPer, SalesPrice, PurchPrice,
  UOMRatio, ExtPrice, Weight
}
enum  itemDataRole { FormatRole = (Qt::UserRole + 1), EditorRole, MenuRole }

Public Member Functions

 XSqlTableModel (QObject *parent=0)
 ~XSqlTableModel ()
virtual void applyColumnRole (int column, int role, QVariant value)
virtual void applyColumnRoles (int row)
virtual void applyColumnRoles ()
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual QVariant formatValue (const QVariant &dataValue, const QVariant &formatValue) const
virtual bool select ()
virtual QString selectStatement () const
virtual void setColumnRole (int column, int role, QVariant value)
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
virtual void setKeys (int keyColumns)
virtual void setTable (const QString &tableName, int keyColumns)

Member Enumeration Documentation

Enumerator:
Money 
Qty 
Curr 
Percent 
Cost 
QtyPer 
SalesPrice 
PurchPrice 
UOMRatio 
ExtPrice 
Weight 
Enumerator:
FormatRole 
EditorRole 
MenuRole 

Constructor & Destructor Documentation

XSqlTableModel::XSqlTableModel ( QObject parent = 0  ) 
XSqlTableModel::~XSqlTableModel (  ) 

Member Function Documentation

void XSqlTableModel::applyColumnRole ( int  column,
int  role,
QVariant  value 
) [virtual]
void XSqlTableModel::applyColumnRoles ( int  row  )  [virtual]
void XSqlTableModel::applyColumnRoles (  )  [virtual]
QVariant XSqlTableModel::data ( const QModelIndex index,
int  role = Qt::DisplayRole 
) const [virtual]

Reimplemented from QSqlQueryModel.

QVariant XSqlTableModel::formatValue ( const QVariant dataValue,
const QVariant formatValue 
) const [virtual]
bool XSqlTableModel::select (  )  [virtual]

Reimplemented from QSqlTableModel.

QString XSqlTableModel::selectStatement (  )  const [virtual]

Reimplemented from QSqlTableModel.

void XSqlTableModel::setColumnRole ( int  column,
int  role,
QVariant  value 
) [virtual]
bool XSqlTableModel::setData ( const QModelIndex index,
const QVariant value,
int  role = Qt::EditRole 
) [virtual]

Reimplemented from QSqlRelationalTableModel.

void XSqlTableModel::setKeys ( int  keyColumns  )  [virtual]
void XSqlTableModel::setTable ( const QString tableName,
int  keyColumns 
) [virtual]

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

Generated on Tue Apr 20 12:03:57 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1