Skip to content

Class FeatureListModelSelection

ClassList > FeatureListModelSelection

Inherits the following classes: QObject

Public Properties

Type Name
property QgsFeature focusedFeature
property QgsGeometry focusedGeometry
property int focusedItem
property QgsVectorLayer * focusedLayer
property MultiFeatureListModel * model

Public Signals

Type Name
signal void focusedItemChanged
signal void modelChanged
signal void selectedFeaturesChanged

Public Functions

Type Name
FeatureListModelSelection (QObject * parent=nullptr)
Q_INVOKABLE void clear ()
QgsFeature focusedFeature () const
QgsGeometry focusedGeometry () const
int focusedItem () const
QgsVectorLayer * focusedLayer () const
MultiFeatureListModel * model () const
void setFocusedItem (int item)
void setModel (MultiFeatureListModel * model)
Q_INVOKABLE void toggleSelectedItem (int item)

Public Properties Documentation

property focusedFeature [1/2]

QgsFeature FeatureListModelSelection::focusedFeature;

property focusedGeometry [1/2]

QgsGeometry FeatureListModelSelection::focusedGeometry;

property focusedItem [1/2]

int FeatureListModelSelection::focusedItem;

property focusedLayer [1/2]

QgsVectorLayer * FeatureListModelSelection::focusedLayer;

property model [1/2]

MultiFeatureListModel * FeatureListModelSelection::model;

Public Signals Documentation

signal focusedItemChanged

void FeatureListModelSelection::focusedItemChanged;

signal modelChanged

void FeatureListModelSelection::modelChanged;

signal selectedFeaturesChanged

void FeatureListModelSelection::selectedFeaturesChanged;

Public Functions Documentation

function FeatureListModelSelection

explicit FeatureListModelSelection::FeatureListModelSelection (
    QObject * parent=nullptr
) 

function clear

Q_INVOKABLE void FeatureListModelSelection::clear () 

function focusedFeature [2/2]

QgsFeature FeatureListModelSelection::focusedFeature () const

function focusedGeometry [2/2]

QgsGeometry FeatureListModelSelection::focusedGeometry () const

function focusedItem [2/2]

int FeatureListModelSelection::focusedItem () const

function focusedLayer [2/2]

QgsVectorLayer * FeatureListModelSelection::focusedLayer () const

function model [2/2]

MultiFeatureListModel * FeatureListModelSelection::model () const

function setFocusedItem

void FeatureListModelSelection::setFocusedItem (
    int item
) 

function setModel

void FeatureListModelSelection::setModel (
    MultiFeatureListModel * model
) 

function toggleSelectedItem

Q_INVOKABLE void FeatureListModelSelection::toggleSelectedItem (
    int item
) 


The documentation for this class was generated from the following file src/core/featurelistmodelselection.h