Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
declare setupRelationWidgetWrapper with 2 args as deprecated
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/gui/qgsattributeform.cpp
-
+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; |
|
|