mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
[FEATURE][needs-docs] Update vector layer selection from feature
selection dialog
This commit is contained in:
parent
485db34e56
commit
3c24de55e1
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user