53 Q_PROPERTY( QString
id READ
id WRITE setId )
55 Q_PROPERTY( QString referencedLayerField READ referencedLayerField )
56 Q_PROPERTY( QString referencedLayerExpression READ referencedLayerExpression )
57 Q_PROPERTY( QString name READ name WRITE setName )
58 Q_PROPERTY(
bool isValid READ isValid )
104 void writeXml( QDomNode &node, QDomDocument &doc ) const;
109 void setId( const QString &
id );
114 void setName( const QString &name );
119 void setReferencingLayer( const QString &
id );
129 void addFieldPair( const QString &referencingField, const QString &referencedField );
148 QString name() const;
168 QString referencingLayerId() const;
186 QList< QgsRelation::FieldPair > fieldPairs()
const;
188 QMap< QString, QString > fieldPairs()
const;
190 const QList< QgsRelation::FieldPair > &pairs = sipCpp->fieldPairs();
191 sipRes =
new QMap< QString, QString >();
194 sipRes->insert( pair.first, pair.second );
221 bool isValid()
const;
235 void updateRelationStatus();
240 void setReferencedLayerField(
const QString &referencedLayerField );
245 QString referencedLayerField()
const;
250 void setReferencedLayerExpression(
const QString &expression );
255 QString referencedLayerExpression()
const;
260 void setReferencedLayerIds(
const QStringList &childRelationIds );
265 QStringList referencedLayerIds()
const;
270 QList<QgsRelation> generateRelations()
const;
291 QString upgradeGeneratedRelationId(
const QString &oldRelationId )
const;
293 QExplicitlySharedDataPointer<QgsPolymorphicRelationPrivate> d;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The class is used as a container of context for various read/write operations on other objects.