diff --git a/python/gui/auto_generated/qgsfieldmappingwidget.sip.in b/python/gui/auto_generated/qgsfieldmappingwidget.sip.in index ebd3069a9605..07070603adc9 100644 --- a/python/gui/auto_generated/qgsfieldmappingwidget.sip.in +++ b/python/gui/auto_generated/qgsfieldmappingwidget.sip.in @@ -146,9 +146,11 @@ Moves up currently selected field Moves down the currently selected field %End - bool invertSelection( ); + void invertSelection( ); %Docstring -Invert the field selection state +Invert the field selection state. + +.. versionadded:: 3.32 %End }; diff --git a/src/gui/qgsfieldmappingwidget.cpp b/src/gui/qgsfieldmappingwidget.cpp index 0fa3f82825c9..df426e449943 100644 --- a/src/gui/qgsfieldmappingwidget.cpp +++ b/src/gui/qgsfieldmappingwidget.cpp @@ -148,7 +148,7 @@ bool QgsFieldMappingWidget::removeSelectedFields() return true; } -bool QgsFieldMappingWidget::invertSelection() +void QgsFieldMappingWidget::invertSelection() { for ( int i = 0; i < mTableView->model()->rowCount(); ++i ) { @@ -158,7 +158,6 @@ bool QgsFieldMappingWidget::invertSelection() mTableView->selectionModel()->select( index, QItemSelectionModel::Toggle ); } } - return true; } bool QgsFieldMappingWidget::moveSelectedFieldsUp()