Skip to content

Commit

Permalink
extentsChanged deprecated as reloadVisible (private)
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Mar 18, 2020
1 parent 8562f78 commit 7c54194
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Expand Up @@ -242,11 +242,13 @@ selection state of the feature in case selected features are to be shown on top.

public slots:

void reloadVisible();
void extentsChanged();
%Docstring
Is called upon every change of the visible extents on the map canvas or when data of
the master table model change.
Is called upon every change of the visible extents on the map canvas.
When a change is signalled, the filter is updated and invalidated if needed.

.. deprecated:: QGIS 3.10.3
- made private as reloadVisible()
%End

void filterFeatures();
Expand Down
5 changes: 5 additions & 0 deletions src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -389,6 +389,11 @@ bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel
// returns are handled in their respective case statement above
}

void QgsAttributeTableFilterModel::extentsChanged()
{
reloadVisible();
}

void QgsAttributeTableFilterModel::reloadVisible()
{
generateListOfVisibleFeatures();
Expand Down
8 changes: 5 additions & 3 deletions src/gui/attributetable/qgsattributetablefiltermodel.h
Expand Up @@ -263,11 +263,12 @@ class GUI_EXPORT QgsAttributeTableFilterModel: public QSortFilterProxyModel, pub
public slots:

/**
* Is called upon every change of the visible extents on the map canvas or when data of
* the master table model change.
* Is called upon every change of the visible extents on the map canvas.
* When a change is signalled, the filter is updated and invalidated if needed.
*
* \deprecated since QGIS 3.10.3 - made private as reloadVisible()
*/
void reloadVisible();
Q_DECL_DEPRECATED void extentsChanged();

/**
* Updates the filtered features in the filter model. It is called when the data of the
Expand All @@ -280,6 +281,7 @@ class GUI_EXPORT QgsAttributeTableFilterModel: public QSortFilterProxyModel, pub
private slots:
void selectionChanged();
void onColumnsChanged();
void reloadVisible();

private:
QgsFeatureIds mFilteredFeatures;
Expand Down

0 comments on commit 7c54194

Please sign in to comment.