Skip to content
Permalink
Browse files

declare setupRelationWidgetWrapper with 2 args as deprecated

  • Loading branch information
suricactus committed Jan 4, 2021
1 parent e892bee commit 95300c9800b94680bb2d7555b9f348479f6b4097
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgsattributeform.cpp
  2. +1 −1 src/gui/qgsattributeform.h
@@ -1644,7 +1644,7 @@ void QgsAttributeForm::init()
const QList<QgsRelation> relations = QgsProject::instance()->relationManager()->referencedRelations( mLayer );
for ( const QgsRelation &rel : relations )
{
QgsRelationWidgetWrapper *rww = setupRelationWidgetWrapper( rel, mContext );
QgsRelationWidgetWrapper *rww = setupRelationWidgetWrapper( QStringLiteral( "basic" ), rel, mContext );

QgsAttributeFormRelationEditorWidget *formWidget = new QgsAttributeFormRelationEditorWidget( rww, this );
formWidget->createSearchWidgetWrappers( mContext );
@@ -414,7 +414,7 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
bool currentFormValidConstraints( QStringList &invalidFields, QStringList &descriptions );
QList<QgsEditorWidgetWrapper *> constraintDependencies( QgsEditorWidgetWrapper *w );

QgsRelationWidgetWrapper *setupRelationWidgetWrapper( const QgsRelation &rel, const QgsAttributeEditorContext &context );
Q_DECL_DEPRECATED QgsRelationWidgetWrapper *setupRelationWidgetWrapper( const QgsRelation &rel, const QgsAttributeEditorContext &context ) SIP_DEPRECATED;
QgsRelationWidgetWrapper *setupRelationWidgetWrapper( const QString &relationWidgetTypeId, const QgsRelation &rel, const QgsAttributeEditorContext &context );

QgsVectorLayer *mLayer = nullptr;

0 comments on commit 95300c9

Please sign in to comment.
You can’t perform that action at this time.