Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Mar 18, 2020
1 parent a9c81d1 commit 8562f78
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
Expand Up @@ -202,6 +202,8 @@ is shown.
%Docstring
Set the ``expression`` and the ``context`` to be stored in case of the features
need to be filtered again (like on filter or on main model data change).

.. versionadded:: 3.10.3
%End

signals:
Expand Down Expand Up @@ -249,7 +251,10 @@ When a change is signalled, the filter is updated and invalidated if needed.

void filterFeatures();
%Docstring
Is called when the data changed of the main table moment to update the filter model.
Updates the filtered features in the filter model. It is called when the data of the
main table or the filter expression changed.

.. versionadded:: 3.10.3
%End

};
Expand Down
6 changes: 6 additions & 0 deletions python/gui/auto_generated/attributetable/qgsdualview.sip.in
Expand Up @@ -133,6 +133,12 @@ Set a list of currently visible features
%End

void filterFeatures( const QgsExpression &filterExpression, const QgsExpressionContext &context );
%Docstring
Sets the expression and Updates the filtered features in the filter model.
It is called when the filter expression changed.

.. versionadded:: 3.10.3
%End

QgsFeatureIds filteredFeatures();
%Docstring
Expand Down
7 changes: 6 additions & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.h
Expand Up @@ -224,6 +224,8 @@ class GUI_EXPORT QgsAttributeTableFilterModel: public QSortFilterProxyModel, pub
/**
* Set the \a expression and the \a context to be stored in case of the features
* need to be filtered again (like on filter or on main model data change).
*
* \since QGIS 3.10.3
*/
void setFilterExpression( const QgsExpression &expression, const QgsExpressionContext &context );

Expand Down Expand Up @@ -268,7 +270,10 @@ class GUI_EXPORT QgsAttributeTableFilterModel: public QSortFilterProxyModel, pub
void reloadVisible();

/**
* Is called when the data changed of the main table moment to update the filter model.
* Updates the filtered features in the filter model. It is called when the data of the
* main table or the filter expression changed.
*
* \since QGIS 3.10.3
*/
void filterFeatures();

Expand Down
6 changes: 6 additions & 0 deletions src/gui/attributetable/qgsdualview.h
Expand Up @@ -161,6 +161,12 @@ class GUI_EXPORT QgsDualView : public QStackedWidget, private Ui::QgsDualViewBas
*/
Q_DECL_DEPRECATED void setFilteredFeatures( const QgsFeatureIds &filteredFeatures );

/**
* Sets the expression and Updates the filtered features in the filter model.
* It is called when the filter expression changed.
*
* \since QGIS 3.10.3
*/
void filterFeatures( const QgsExpression &filterExpression, const QgsExpressionContext &context );

/**
Expand Down

0 comments on commit 8562f78

Please sign in to comment.