needsGeometry getter is not a signal

This commit is contained in:
Nyall Dawson 2022-11-19 14:45:02 +10:00
parent 4f1cc22b54
commit 6d74da2300
2 changed files with 13 additions and 13 deletions

View File

@ -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
};

View File

@ -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 );