"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/attributetable/qgsattributetablefiltermodel.cpp" between
QGIS-final-3_10_5.tar.gz and QGIS-final-3_10_6.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgsattributetablefiltermodel.cpp  (QGIS-final-3_10_5):qgsattributetablefiltermodel.cpp  (QGIS-final-3_10_6)
skipping to change at line 324 skipping to change at line 324
return ids; return ids;
} }
void QgsAttributeTableFilterModel::setFilterMode( FilterMode filterMode ) void QgsAttributeTableFilterModel::setFilterMode( FilterMode filterMode )
{ {
if ( filterMode != mFilterMode ) if ( filterMode != mFilterMode )
{ {
if ( filterMode == ShowVisible ) if ( filterMode == ShowVisible )
{ {
connect( mCanvas, &QgsMapCanvas::extentsChanged, this, &QgsAttributeTableF ilterModel::reloadVisible ); connect( mCanvas, &QgsMapCanvas::extentsChanged, this, &QgsAttributeTableF ilterModel::reloadVisible );
connect( mTableModel, &QgsAttributeTableModel::dataChanged, this, &QgsAttr connect( layer(), &QgsVectorLayer::featureAdded, this, &QgsAttributeTableF
ibuteTableFilterModel::reloadVisible ); ilterModel::reloadVisible );
//featureDeleted is handled over selectionChanged
generateListOfVisibleFeatures(); generateListOfVisibleFeatures();
} }
else else
{ {
disconnect( mCanvas, &QgsMapCanvas::extentsChanged, this, &QgsAttributeTab leFilterModel::reloadVisible ); disconnect( mCanvas, &QgsMapCanvas::extentsChanged, this, &QgsAttributeTab leFilterModel::reloadVisible );
disconnect( mTableModel, &QgsAttributeTableModel::dataChanged, this, &QgsA ttributeTableFilterModel::reloadVisible ); disconnect( layer(), &QgsVectorLayer::featureAdded, this, &QgsAttributeTab leFilterModel::reloadVisible );
} }
if ( filterMode == ShowFilteredList ) if ( filterMode == ShowFilteredList )
{ {
connect( mTableModel, &QgsAttributeTableModel::dataChanged, this, &QgsAttr connect( layer(), &QgsVectorLayer::featureAdded, this, &QgsAttributeTableF
ibuteTableFilterModel::filterFeatures ); ilterModel::filterFeatures );
//featureDeleted is handled over selectionChanged
} }
else else
{ {
disconnect( mTableModel, &QgsAttributeTableModel::dataChanged, this, &QgsA ttributeTableFilterModel::filterFeatures ); disconnect( layer(), &QgsVectorLayer::featureAdded, this, &QgsAttributeTab leFilterModel::filterFeatures );
} }
mFilterMode = filterMode; mFilterMode = filterMode;
invalidateFilter(); invalidateFilter();
} }
} }
bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel Index &sourceParent ) const bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel Index &sourceParent ) const
{ {
Q_UNUSED( sourceParent ) Q_UNUSED( sourceParent )
 End of changes. 4 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)