42 #ifndef QSQLTABLEMODEL_P_H 43 #define QSQLTABLEMODEL_P_H 56 #include "QtCore/qmap.h" 57 #include "private/qsqlquerymodel_p.h" 120 #endif // QSQLTABLEMODEL_P_H static void clearGenerated(QSqlRecord &rec)
The QVariant class acts like a union for the most common Qt data types.
The QSqlIndex class provides functions to manipulate and describe database indexes.
EditStrategy
This enum type describes which strategy to choose when editing values in the database.
static void setGeneratedValue(QSqlRecord &rec, int c, QVariant v)
virtual int nameToIndex(const QString &name) const
#define QT_END_NAMESPACE
This macro expands to.
ModifiedRow(Op o=None, const QSqlRecord &r=QSqlRecord())
void initRecordAndPrimaryIndex()
bool setRecord(int row, const QSqlRecord &record)
Set a record for OnFieldChange and OnRowChange.
The QSqlQuery class provides a means of executing and manipulating SQL statements.
virtual void clearCache()
The QSqlDatabase class represents a connection to a database.
The QSqlRecord class encapsulates a database record.
The QString class provides a Unicode character string.
QSqlRecord primaryValues(int index)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QMap< int, ModifiedRow > CacheMap
virtual void clearEditBuffer()
QSqlTableModel::EditStrategy strategy
virtual void revertCachedRow(int row)
ModifiedRow(const ModifiedRow &other)
#define Q_DECLARE_PUBLIC(Class)
QSqlRecord record(const QVector< QVariant > &values) const
Populates our record with values.
The QSqlTableModel class provides an editable data model for a single database table.
bool exec(const QString &stmt, bool prepStatement, const QSqlRecord &rec, const QSqlRecord &whereValues)