@@ -268,24 +268,35 @@ This element will load a relation editor onto the form.
268
268
%End
269
269
public:
270
270
271
- QgsAttributeEditorRelation( const QString &name, const QString &relationId, QgsAttributeEditorElement *parent );
271
+ QgsAttributeEditorRelation( const QString &name, const QString &relationId, QgsAttributeEditorElement *parent );
272
+ %Docstring
273
+
274
+ .. deprecated:: since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
275
+ %End
276
+
277
+ QgsAttributeEditorRelation( const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent );
278
+ %Docstring
279
+
280
+ .. deprecated:: since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
281
+ %End
282
+
283
+ QgsAttributeEditorRelation( const QString &relationId, QgsAttributeEditorElement *parent );
272
284
%Docstring
273
285
Creates a new element which embeds a relation.
274
286
275
- :param name: The name of this element
276
287
:param relationId: The id of the relation to embed
277
288
:param parent: The parent (used as container)
278
289
%End
279
290
280
- QgsAttributeEditorRelation( const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent );
291
+ QgsAttributeEditorRelation( const QgsRelation &relation, QgsAttributeEditorElement *parent );
281
292
%Docstring
282
293
Creates a new element which embeds a relation.
283
294
284
- :param name: The name of this element
285
295
:param relation: The relation to embed
286
296
:param parent: The parent (used as container)
287
297
%End
288
298
299
+
289
300
const QgsRelation &relation() const;
290
301
%Docstring
291
302
Get the id of the relation which shall be embedded
0 commit comments