From 6d74da23009ea9de4a83cc0db00db99bb10bfaa3 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sat, 19 Nov 2022 14:45:02 +1000 Subject: [PATCH] needsGeometry getter is not a signal --- python/gui/auto_generated/qgsattributeform.sip.in | 14 +++++++------- src/gui/qgsattributeform.h | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/python/gui/auto_generated/qgsattributeform.sip.in b/python/gui/auto_generated/qgsattributeform.sip.in index 6a87d775167..d99237d0af8 100644 --- a/python/gui/auto_generated/qgsattributeform.sip.in +++ b/python/gui/auto_generated/qgsattributeform.sip.in @@ -184,6 +184,13 @@ Sets an additional expression context scope to be used for calculations in this form. .. versionadded:: 3.16 +%End + + bool needsGeometry() const; +%Docstring +Returns ``True`` if any of the form widgets need feature geometry + +.. versionadded:: 3.20 %End signals: @@ -326,13 +333,6 @@ Notify the form widgets that something has changed in case they have filter expressions that depend on the parent form scope. .. versionadded:: 3.14 -%End - - bool needsGeometry() const; -%Docstring -Returns ``True`` if any of the form widgets need feature geometry - -.. versionadded:: 3.20 %End }; diff --git a/src/gui/qgsattributeform.h b/src/gui/qgsattributeform.h index 1e58daf2e81..292451120fb 100644 --- a/src/gui/qgsattributeform.h +++ b/src/gui/qgsattributeform.h @@ -201,6 +201,12 @@ class GUI_EXPORT QgsAttributeForm : public QWidget */ void setExtraContextScope( QgsExpressionContextScope *extraScope SIP_TRANSFER ); + /** + * Returns TRUE if any of the form widgets need feature geometry + * \since QGIS 3.20 + */ + bool needsGeometry() const; + signals: /** @@ -340,12 +346,6 @@ class GUI_EXPORT QgsAttributeForm : public QWidget */ void parentFormValueChanged( const QString &attribute, const QVariant &newValue ); - /** - * Returns TRUE if any of the form widgets need feature geometry - * \since QGIS 3.20 - */ - bool needsGeometry() const; - private slots: void onAttributeChanged( const QVariant &value, const QVariantList &additionalFieldValues ); void onAttributeAdded( int idx );