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] |
bool XSqlTableModel::select |
( |
|
) |
[virtual] |
QString XSqlTableModel::selectStatement |
( |
|
) |
const [virtual] |
void XSqlTableModel::setColumnRole |
( |
int |
column, |
|
|
int |
role, |
|
|
QVariant |
value | |
|
) |
| | [virtual] |
bool XSqlTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole | |
|
) |
| | [virtual] |
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: