Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRelation Struct Reference
Collaboration diagram for QRelation:

Public Member Functions

 QRelation ()=default
void init (QSqlRelationalTableModel *parent, const QSqlRelation &relation, int column)
void populateModel ()
bool isDictionaryInitialized () const
void populateDictionary ()
void clearDictionary ()
void clear ()
bool isValid () const
 QRelation ()=default
void init (QSqlRelationalTableModel *parent, const QSqlRelation &relation, int column)
void populateModel ()
bool isDictionaryInitialized () const
void populateDictionary ()
void clearDictionary ()
void clear ()
bool isValid () const

Public Attributes

QSqlRelation rel
QRelatedTableModelmodel = nullptr
QHash< QString, QVariantdictionary

Detailed Description

Definition at line 103 of file qsqlrelationaltablemodel.cpp.

Constructor & Destructor Documentation

◆ QRelation() [1/2]

QRelation::QRelation ( )
default

◆ QRelation() [2/2]

QRelation::QRelation ( )
default

Member Function Documentation

◆ clear() [1/2]

void QRelation::clear ( )

Definition at line 216 of file qsqlrelationaltablemodel.cpp.

References clearDictionary(), and model.

Here is the call graph for this function:

◆ clear() [2/2]

void QRelation::clear ( )

◆ clearDictionary() [1/2]

void QRelation::clearDictionary ( )

Definition at line 210 of file qsqlrelationaltablemodel.cpp.

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

Here is the caller graph for this function:

◆ clearDictionary() [2/2]

void QRelation::clearDictionary ( )

◆ init() [1/2]

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

Definition at line 143 of file qsqlrelationaltablemodel.cpp.

◆ init() [2/2]

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

◆ isDictionaryInitialized() [1/2]

bool QRelation::isDictionaryInitialized ( ) const

Definition at line 177 of file qsqlrelationaltablemodel.cpp.

◆ isDictionaryInitialized() [2/2]

bool QRelation::isDictionaryInitialized ( ) const

◆ isValid() [1/2]

bool QRelation::isValid ( ) const

Definition at line 223 of file qsqlrelationaltablemodel.cpp.

Referenced by populateDictionary(), and populateModel().

Here is the caller graph for this function:

◆ isValid() [2/2]

bool QRelation::isValid ( ) const

◆ populateDictionary() [1/2]

void QRelation::populateDictionary ( )

Definition at line 182 of file qsqlrelationaltablemodel.cpp.

References isValid(), model, and populateModel().

Referenced by QRelatedTableModel::select().

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

◆ populateDictionary() [2/2]

void QRelation::populateDictionary ( )

◆ populateModel() [1/2]

void QRelation::populateModel ( )

Definition at line 151 of file qsqlrelationaltablemodel.cpp.

References isValid(), model, and QRelatedTableModel::select().

Referenced by populateDictionary().

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

◆ populateModel() [2/2]

void QRelation::populateModel ( )

Member Data Documentation

◆ dictionary

QHash< QString, QVariant > QRelation::dictionary

Definition at line 121 of file qsqlrelationaltablemodel.cpp.

◆ model

QRelatedTableModel * QRelation::model = nullptr

Definition at line 120 of file qsqlrelationaltablemodel.cpp.

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

◆ rel

QSqlRelation QRelation::rel

Definition at line 119 of file qsqlrelationaltablemodel.cpp.


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