SqlTableModel Class Reference

Simple color/behaviour improvements for standard Qt4 Sql Models. More...

#include <sqlmodels.h>

List of all members.

Public Member Functions

 SqlTableModel (QObject *parent=0, QSqlDatabase db=QSqlDatabase())
 ~SqlTableModel ()
void setSchema (const QString &schema)
QString schema ()
bool pendingTransaction ()
void setPendingTransaction (bool pending)
 Set the pending flag.
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())


Detailed Description

Simple color/behaviour improvements for standard Qt4 Sql Models.

Constructor & Destructor Documentation

SqlTableModel::SqlTableModel ( QObject *  parent = 0,
QSqlDatabase  db = QSqlDatabase() 
)

SqlTableModel::~SqlTableModel (  )  [inline]


Member Function Documentation

void SqlTableModel::setSchema ( const QString &  schema  )  [inline]

QString SqlTableModel::schema (  )  [inline]

bool SqlTableModel::pendingTransaction (  )  [inline]

void SqlTableModel::setPendingTransaction ( bool  pending  ) 

Set the pending flag.

See also:
m_pending to the transaction state and refresh the QTableView vertical header in the case of rollback. The chached rows to delete are stored in the

m_deleteCache.

Parameters:
pending true in the case of active transaction in progress.

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

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


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

Generated on Sat Jul 26 09:05:56 2008 for Sqliteman by  doxygen 1.5.5