![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QRelation () | |
void | init (QSqlRelationalTableModel *parent, const QSqlRelation &relation) |
void | populateModel () |
bool | isDictionaryInitialized () |
void | populateDictionary () |
void | clearDictionary () |
void | clear () |
bool | isValid () |
Public Attributes | |
QSqlRelation | rel |
QRelatedTableModel * | model |
QHash< QString, QVariant > | dictionary |
Definition at line 103 of file qsqlrelationaltablemodel.cpp.
|
inline |
Definition at line 106 of file qsqlrelationaltablemodel.cpp.
void QRelation::clear | ( | ) |
Definition at line 200 of file qsqlrelationaltablemodel.cpp.
References clearDictionary(), and model.
Referenced by QSqlRelationalTableModelPrivate::clearChanges().
void QRelation::clearDictionary | ( | ) |
Definition at line 194 of file qsqlrelationaltablemodel.cpp.
References QHash< Key, T >::clear(), and dictionary.
Referenced by clear(), and QRelatedTableModel::select().
void QRelation::init | ( | QSqlRelationalTableModel * | parent, |
const QSqlRelation & | relation | ||
) |
Definition at line 141 of file qsqlrelationaltablemodel.cpp.
bool QRelation::isDictionaryInitialized | ( | ) |
Definition at line 161 of file qsqlrelationaltablemodel.cpp.
bool QRelation::isValid | ( | ) |
Definition at line 207 of file qsqlrelationaltablemodel.cpp.
References QSqlRelation::isValid(), and rel.
Referenced by populateDictionary(), populateModel(), and QSqlRelationalTableModelPrivate::translateFieldNames().
void QRelation::populateDictionary | ( | ) |
Definition at line 166 of file qsqlrelationaltablemodel.cpp.
References QSqlTableModel::database(), dictionary, QSqlRelation::displayColumn(), QSqlDatabase::driver(), QSqlDriver::FieldName, i, QSqlRelation::indexColumn(), QSqlDriver::isIdentifierEscaped(), isValid(), model, populateModel(), QSqlTableModel::record(), record(), rel, QSqlTableModel::rowCount(), and QSqlDriver::stripDelimiters().
Referenced by QRelatedTableModel::select().
void QRelation::populateModel | ( | ) |
Definition at line 148 of file qsqlrelationaltablemodel.cpp.
References QSqlTableModel::database(), isValid(), model, Q_ASSERT, rel, QRelatedTableModel::select(), QSqlTableModel::setTable(), and QSqlRelation::tableName().
Referenced by populateDictionary().
Definition at line 120 of file qsqlrelationaltablemodel.cpp.
Referenced by clearDictionary(), and populateDictionary().
QRelatedTableModel* QRelation::model |
Definition at line 119 of file qsqlrelationaltablemodel.cpp.
Referenced by clear(), populateDictionary(), and populateModel().
QSqlRelation QRelation::rel |
Definition at line 118 of file qsqlrelationaltablemodel.cpp.
Referenced by init(), isValid(), populateDictionary(), and populateModel().