QtSql/qsqlrelationaltablemodel.h Source File
Go to the documentation of this file.
42 #ifndef QSQLRELATIONALTABLEMODEL_H
43 #define QSQLRELATIONALTABLEMODEL_H
59 : tName(aTableName), iColumn(indexCol), dColumn(displayCol) {}
67 {
return !(tName.isEmpty() || iColumn.isEmpty() || dColumn.isEmpty()); }
69 QString tName, iColumn, dColumn;
72 class QSqlRelationalTableModelPrivate;
96 virtual void setRelation(
int column,
const QSqlRelation &relation);
118 #endif // QSQLRELATIONALTABLEMODEL_H
QSqlRelation(const QString &aTableName, const QString &indexCol, const QString &displayCol)
QString displayColumn() const
QString tableName() const
virtual bool insertRowIntoTable(const QSqlRecord &values)
virtual QString selectStatement() const
virtual QString orderByClause() const
GLenum GLenum GLvoid * row
#define QT_BEGIN_NAMESPACE
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
virtual void revertRow(int row)
GLuint GLuint GLsizei count
virtual void setTable(const QString &tableName)
GLsizei const GLfloat * value
GLenum GLenum GLvoid GLvoid * column
QVariant data(const QModelIndex &idx, int role=Qt::DisplayRole) const
virtual bool updateRowInTable(int row, const QSqlRecord &values)
QString indexColumn() const
bool removeColumns(int column, int count, const QModelIndex &parent=QModelIndex())
GLboolean GLenum GLenum GLvoid * values