Qt 4.8
|
#include <qsqltablemodel_p.h>
Classes | |
struct | ModifiedRow |
Public Types | |
typedef QMap< int, ModifiedRow > | CacheMap |
enum | Op { None, Insert, Update, Delete } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Functions | |
void | clear () |
virtual void | clearCache () |
virtual void | clearEditBuffer () |
bool | exec (const QString &stmt, bool prepStatement, const QSqlRecord &rec, const QSqlRecord &whereValues) |
void | initRecordAndPrimaryIndex () |
virtual int | nameToIndex (const QString &name) const |
QSqlRecord | primaryValues (int index) |
QSqlTableModelPrivate () | |
QSqlRecord | record (const QVector< QVariant > &values) const |
Populates our record with values. More... | |
virtual void | revertCachedRow (int row) |
void | revertInsertedRow () |
bool | setRecord (int row, const QSqlRecord &record) |
Set a record for OnFieldChange and OnRowChange. More... | |
Public Functions inherited from QSqlQueryModelPrivate | |
void | initColOffsets (int size) |
void | prefetch (int) |
QSqlQueryModelPrivate () | |
~QSqlQueryModelPrivate () | |
Public Functions inherited from QAbstractItemModelPrivate | |
bool | allowMove (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) |
Returns whether a move operation is valid. More... | |
void | columnsAboutToBeInserted (const QModelIndex &parent, int first, int last) |
void | columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
void | columnsInserted (const QModelIndex &parent, int first, int last) |
void | columnsRemoved (const QModelIndex &parent, int first, int last) |
QModelIndex | createIndex (int row, int column, void *data=0) const |
QModelIndex | createIndex (int row, int column, int id) const |
bool | indexValid (const QModelIndex &index) const |
void | invalidatePersistentIndex (const QModelIndex &index) |
void | invalidatePersistentIndexes () |
void | itemsAboutToBeMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation) |
void | itemsMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) |
void | movePersistentIndexes (QVector< QPersistentModelIndexData *> indexes, int change, const QModelIndex &parent, Qt::Orientation orientation) |
Moves persistent indexes indexes by amount change. More... | |
QAbstractItemModelPrivate () | |
void | removePersistentIndexData (QPersistentModelIndexData *data) |
void | rowsAboutToBeInserted (const QModelIndex &parent, int first, int last) |
void | rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
void | rowsInserted (const QModelIndex &parent, int first, int last) |
void | rowsRemoved (const QModelIndex &parent, int first, int last) |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Static Public Functions | |
static void | clearGenerated (QSqlRecord &rec) |
static void | setGeneratedValue (QSqlRecord &rec, int c, QVariant v) |
Static Public Functions inherited from QAbstractItemModelPrivate | |
static const QHash< int, QByteArray > & | defaultRoleNames () |
static QAbstractItemModel * | staticEmptyModel () |
static bool | variantLessThan (const QVariant &v1, const QVariant &v2) |
This function is used by our Q{Tree,Widget,Table}WidgetModel classes to sort. More... | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Definition at line 61 of file qsqltablemodel_p.h.
typedef QMap<int, ModifiedRow> QSqlTableModelPrivate::CacheMap |
Definition at line 114 of file qsqltablemodel_p.h.
|
inline |
Definition at line 66 of file qsqltablemodel_p.h.
void QSqlTableModelPrivate::clear | ( | void | ) |
Definition at line 121 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
|
virtual |
Reimplemented in QSqlRelationalTableModelPrivate.
Definition at line 152 of file qsqltablemodel.cpp.
Referenced by QSqlRelationalTableModelPrivate::clearCache(), and QSqlTableModelPrivate().
|
virtual |
Reimplemented in QSqlRelationalTableModelPrivate.
Definition at line 146 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
|
static |
Definition at line 157 of file qsqltablemodel.cpp.
Referenced by clearEditBuffer(), QSqlTableModelPrivate::ModifiedRow::ModifiedRow(), QSqlTableModelPrivate(), QSqlTableModel::setData(), and QSqlTableModel::setRecord().
bool QSqlTableModelPrivate::exec | ( | const QString & | stmt, |
bool | prepStatement, | ||
const QSqlRecord & | rec, | ||
const QSqlRecord & | whereValues | ||
) |
Definition at line 201 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
void QSqlTableModelPrivate::initRecordAndPrimaryIndex | ( | ) |
Definition at line 115 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
|
virtual |
Reimplemented in QSqlRelationalTableModelPrivate.
Definition at line 107 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate(), and setRecord().
QSqlRecord QSqlTableModelPrivate::primaryValues | ( | int | index | ) |
Definition at line 246 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
QSqlRecord QSqlTableModelPrivate::record | ( | const QVector< QVariant > & | values | ) | const |
Populates our record with values.
Definition at line 64 of file qsqltablemodel.cpp.
Referenced by primaryValues(), and QSqlTableModelPrivate().
|
virtual |
Reimplemented in QSqlRelationalTableModelPrivate.
Definition at line 169 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate(), and QSqlRelationalTableModelPrivate::revertCachedRow().
void QSqlTableModelPrivate::revertInsertedRow | ( | ) |
Definition at line 135 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
|
static |
Definition at line 163 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate(), and QSqlTableModel::setData().
bool QSqlTableModelPrivate::setRecord | ( | int | row, |
const QSqlRecord & | record | ||
) |
Set a record for OnFieldChange and OnRowChange.
Definition at line 78 of file qsqltablemodel.cpp.
Referenced by QSqlTableModelPrivate().
CacheMap QSqlTableModelPrivate::cache |
Definition at line 115 of file qsqltablemodel_p.h.
Referenced by clear(), clearCache(), and revertCachedRow().
QSqlDatabase QSqlTableModelPrivate::db |
Definition at line 87 of file qsqltablemodel_p.h.
Referenced by exec(), initRecordAndPrimaryIndex(), and nameToIndex().
QSqlRecord QSqlTableModelPrivate::editBuffer |
Definition at line 112 of file qsqltablemodel_p.h.
Referenced by clear(), and clearEditBuffer().
int QSqlTableModelPrivate::editIndex |
Definition at line 88 of file qsqltablemodel_p.h.
Referenced by clear().
QSqlQuery QSqlTableModelPrivate::editQuery |
Definition at line 96 of file qsqltablemodel_p.h.
QString QSqlTableModelPrivate::filter |
Definition at line 99 of file qsqltablemodel_p.h.
Referenced by clear().
int QSqlTableModelPrivate::insertIndex |
Definition at line 89 of file qsqltablemodel_p.h.
Referenced by revertInsertedRow().
QSqlIndex QSqlTableModelPrivate::primaryIndex |
Definition at line 97 of file qsqltablemodel_p.h.
Referenced by clear(), initRecordAndPrimaryIndex(), and primaryValues().
int QSqlTableModelPrivate::sortColumn |
Definition at line 91 of file qsqltablemodel_p.h.
Referenced by clear().
Qt::SortOrder QSqlTableModelPrivate::sortOrder |
Definition at line 92 of file qsqltablemodel_p.h.
Referenced by clear().
QSqlTableModel::EditStrategy QSqlTableModelPrivate::strategy |
Definition at line 94 of file qsqltablemodel_p.h.
Referenced by setRecord().
QString QSqlTableModelPrivate::tableName |
Definition at line 98 of file qsqltablemodel_p.h.
Referenced by clear(), and initRecordAndPrimaryIndex().