From 157dca2d13691d4bc3b16cebb5d308f8854319d2 Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Mon, 28 Oct 2019 09:57:55 +0100 Subject: [PATCH] Complete doc --- src/gui/attributetable/qgsvectorlayerselectionmanager.h | 8 ++++++++ src/gui/qgsrelationeditorwidget.cpp | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/gui/attributetable/qgsvectorlayerselectionmanager.h b/src/gui/attributetable/qgsvectorlayerselectionmanager.h index 8675aafe689..5effc686287 100644 --- a/src/gui/attributetable/qgsvectorlayerselectionmanager.h +++ b/src/gui/attributetable/qgsvectorlayerselectionmanager.h @@ -48,6 +48,14 @@ class GUI_EXPORT QgsVectorLayerSelectionManager : public QgsIFeatureSelectionMan QgsVectorLayer *layer() const; private slots: + + /** + * Called whenever layer selection was changed + * + * \param selected Newly selected feature ids + * \param deselected Ids of all features which have previously been selected but are not any more + * \param clearAndSelect In case this is set to TRUE, the old selection was dismissed and the new selection corresponds to selected + */ virtual void onSelectionChanged( const QgsFeatureIds &selected, const QgsFeatureIds &deselected, bool clearAndSelect ); private: diff --git a/src/gui/qgsrelationeditorwidget.cpp b/src/gui/qgsrelationeditorwidget.cpp index 95a4576bfe8..ac8626bd9e5 100644 --- a/src/gui/qgsrelationeditorwidget.cpp +++ b/src/gui/qgsrelationeditorwidget.cpp @@ -38,6 +38,10 @@ /// @cond PRIVATE +/** + * This class is used to filter the current vector layer selection to features matching the given request. + * Relation editor widget use it in order to get selected feature for the current relation. + */ class QgsFilteredSelectionManager : public QgsVectorLayerSelectionManager { public: