17#ifndef QGSRELATIONSHIPSITEM_H
18#define QGSRELATIONSHIPSITEM_H
50 const QString &connectionUri,
51 const QString &providerKey,
52 const QString &schema = QString(),
53 const QString &tableName = QString() );
58 SIP_PYOBJECT __repr__();
60 QString
str = QStringLiteral(
"<QgsRelationshipsItem: %1>" ).arg( sipCpp->path() );
61 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
67 QIcon
icon()
override;
72 QString connectionUri()
const;
79 QString
schema()
const {
return mSchema; }
90 QString mConnectionUri;
93 QStringList mRelationshipNames;
119 SIP_PYOBJECT __repr__();
121 QString
str = QStringLiteral(
"<QgsRelationshipItem: %1>" ).arg( sipCpp->name() );
122 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
126 QIcon
icon()
override;
Base class for all items in the model.
virtual QVector< QgsDataItem * > createChildren()
Create children.
A browser item representing a relationship.
~QgsRelationshipItem() override
Contains a collection of relationship items.
~QgsRelationshipsItem() override
QString tableName() const
Returns the table name for filtering relationships, if set.
QString schema() const
Returns the schema for filtering relationships, if set.
The QgsWeakRelation class represent a QgsRelation with possibly unresolved layers or unmatched fields...