Skip to content

Commit

Permalink
deprecate QgsEditFormConfig::attributeEditorElementFromDomElement
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 11, 2021
1 parent 3f717cb commit a6aecf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion python/core/auto_generated/qgseditformconfig.sip.in
Expand Up @@ -276,9 +276,12 @@ Write XML information
Serialize on project save
%End

QgsAttributeEditorElement *attributeEditorElementFromDomElement( QDomElement &elem, QgsAttributeEditorElement *parent, const QString &layerId = QString(), const QgsReadWriteContext &context = QgsReadWriteContext() );
QgsAttributeEditorElement *attributeEditorElementFromDomElement( QDomElement &elem, QgsAttributeEditorElement *parent, const QString &layerId = QString(), const QgsReadWriteContext &context = QgsReadWriteContext() ) /Deprecated/;
%Docstring
Deserialize drag and drop designer elements.

.. deprecated:: QGIS 3.18
use QgsAttributeEditorElement.create instead
%End

explicit QgsEditFormConfig();
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgseditformconfig.h
Expand Up @@ -308,8 +308,9 @@ class CORE_EXPORT QgsEditFormConfig

/**
* Deserialize drag and drop designer elements.
* \deprecated since QGIS 3.18 use QgsAttributeEditorElement::create instead
*/
QgsAttributeEditorElement *attributeEditorElementFromDomElement( QDomElement &elem, QgsAttributeEditorElement *parent, const QString &layerId = QString(), const QgsReadWriteContext &context = QgsReadWriteContext() );
Q_DECL_DEPRECATED QgsAttributeEditorElement *attributeEditorElementFromDomElement( QDomElement &elem, QgsAttributeEditorElement *parent, const QString &layerId = QString(), const QgsReadWriteContext &context = QgsReadWriteContext() ) SIP_DEPRECATED;

/**
* Create a new edit form config. Normally invoked by QgsVectorLayer
Expand Down

0 comments on commit a6aecf5

Please sign in to comment.