Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRelation Struct Reference
+ Collaboration diagram for QRelation:

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
 
QRelatedTableModelmodel
 
QHash< QString, QVariantdictionary
 

Detailed Description

Definition at line 103 of file qsqlrelationaltablemodel.cpp.

Constructor & Destructor Documentation

◆ QRelation()

QRelation::QRelation ( )
inline

Definition at line 106 of file qsqlrelationaltablemodel.cpp.

Member Function Documentation

◆ clear()

void QRelation::clear ( )

Definition at line 200 of file qsqlrelationaltablemodel.cpp.

References clearDictionary(), and model.

Referenced by QSqlRelationalTableModelPrivate::clearChanges().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearDictionary()

void QRelation::clearDictionary ( )

Definition at line 194 of file qsqlrelationaltablemodel.cpp.

References QHash< Key, T >::clear(), and dictionary.

Referenced by clear(), and QRelatedTableModel::select().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

void QRelation::init ( QSqlRelationalTableModel * parent,
const QSqlRelation & relation )

Definition at line 141 of file qsqlrelationaltablemodel.cpp.

References Q_ASSERT, and rel.

◆ isDictionaryInitialized()

bool QRelation::isDictionaryInitialized ( )

Definition at line 161 of file qsqlrelationaltablemodel.cpp.

◆ isValid()

bool QRelation::isValid ( )

Definition at line 207 of file qsqlrelationaltablemodel.cpp.

References QSqlRelation::isValid(), and rel.

Referenced by populateDictionary(), populateModel(), and QSqlRelationalTableModelPrivate::translateFieldNames().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateDictionary()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateModel()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ dictionary

QHash<QString, QVariant> QRelation::dictionary

Definition at line 120 of file qsqlrelationaltablemodel.cpp.

Referenced by clearDictionary(), and populateDictionary().

◆ model

QRelatedTableModel* QRelation::model

Definition at line 119 of file qsqlrelationaltablemodel.cpp.

Referenced by clear(), populateDictionary(), and populateModel().

◆ rel

QSqlRelation QRelation::rel

Definition at line 118 of file qsqlrelationaltablemodel.cpp.

Referenced by init(), isValid(), populateDictionary(), and populateModel().


The documentation for this struct was generated from the following file: