diff --git a/src/gui/qgsfeatureselectiondlg.cpp b/src/gui/qgsfeatureselectiondlg.cpp index 533d2c7adba..0e44b5dcd90 100644 --- a/src/gui/qgsfeatureselectiondlg.cpp +++ b/src/gui/qgsfeatureselectiondlg.cpp @@ -15,7 +15,7 @@ #include "qgsfeatureselectiondlg.h" -#include "qgsgenericfeatureselectionmanager.h" +#include "qgsvectorlayerselectionmanager.h" #include "qgsdistancearea.h" #include "qgsfeaturerequest.h" #include "qgsattributeeditorcontext.h" @@ -29,7 +29,7 @@ QgsFeatureSelectionDlg::QgsFeatureSelectionDlg( QgsVectorLayer *vl, QgsAttribute { setupUi( this ); - mFeatureSelection = new QgsGenericFeatureSelectionManager( mDualView ); + mFeatureSelection = new QgsVectorLayerSelectionManager( vl, mDualView ); mDualView->setFeatureSelectionManager( mFeatureSelection ); @@ -72,5 +72,3 @@ void QgsFeatureSelectionDlg::showEvent( QShowEvent *event ) QDialog::showEvent( event ); } - - diff --git a/src/gui/qgsfeatureselectiondlg.h b/src/gui/qgsfeatureselectiondlg.h index 08e245fecf5..ce8f343f1d9 100644 --- a/src/gui/qgsfeatureselectiondlg.h +++ b/src/gui/qgsfeatureselectiondlg.h @@ -16,7 +16,7 @@ #ifndef QGSFEATURESELECTIONDLG_H #define QGSFEATURESELECTIONDLG_H -class QgsGenericFeatureSelectionManager; +class QgsVectorLayerSelectionManager; #include "ui_qgsfeatureselectiondlg.h" #include "qgis_sip.h" @@ -67,7 +67,7 @@ class GUI_EXPORT QgsFeatureSelectionDlg : public QDialog, private Ui::QgsFeature void setSelectedFeatures( const QgsFeatureIds &ids ); private: - QgsGenericFeatureSelectionManager *mFeatureSelection = nullptr; + QgsVectorLayerSelectionManager *mFeatureSelection = nullptr; QgsVectorLayer *mVectorLayer = nullptr; // QWidget interface