QGIS API Documentation 3.37.0-Master (08041ddf763)
No Matches
Public Types | Signals | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
QgsFeatureListViewDelegate Class Reference

#include <qgsfeaturelistviewdelegate.h>

Inheritance diagram for QgsFeatureListViewDelegate:
Inheritance graph

Public Types

enum  Element { EditElement , SelectionElement }


void editButtonClicked (QModelIndex &index)

Public Member Functions

 QgsFeatureListViewDelegate (QgsFeatureListModel *listModel, QObject *parent=nullptr)
Element positionToElement (QPoint pos)
void setCurrentFeatureEdited (bool state)
void setEditSelectionModel (QItemSelectionModel *editSelectionModel)
void setFeatureSelectionModel (QgsFeatureSelectionModel *featureSelectionModel)

Static Public Attributes

static const int ICON_SIZE = 24

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override

Detailed Description

Definition at line 31 of file qgsfeaturelistviewdelegate.h.

Member Enumeration Documentation

◆ Element


Definition at line 38 of file qgsfeaturelistviewdelegate.h.

Constructor & Destructor Documentation

◆ QgsFeatureListViewDelegate()

QgsFeatureListViewDelegate::QgsFeatureListViewDelegate ( QgsFeatureListModel listModel,
QObject *  parent = nullptr 

Definition at line 30 of file qgsfeaturelistviewdelegate.cpp.

Member Function Documentation

◆ editButtonClicked

void QgsFeatureListViewDelegate::editButtonClicked ( QModelIndex &  index)

◆ paint()

void QgsFeatureListViewDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 71 of file qgsfeaturelistviewdelegate.cpp.

◆ positionToElement()

QgsFeatureListViewDelegate::Element QgsFeatureListViewDelegate::positionToElement ( QPoint  pos)

Definition at line 37 of file qgsfeaturelistviewdelegate.cpp.

◆ setCurrentFeatureEdited()

void QgsFeatureListViewDelegate::setCurrentFeatureEdited ( bool  state)

Definition at line 54 of file qgsfeaturelistviewdelegate.cpp.

◆ setEditSelectionModel()

void QgsFeatureListViewDelegate::setEditSelectionModel ( QItemSelectionModel *  editSelectionModel)

Definition at line 59 of file qgsfeaturelistviewdelegate.cpp.

◆ setFeatureSelectionModel()

void QgsFeatureListViewDelegate::setFeatureSelectionModel ( QgsFeatureSelectionModel featureSelectionModel)

Definition at line 49 of file qgsfeaturelistviewdelegate.cpp.

◆ sizeHint()

QSize QgsFeatureListViewDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 64 of file qgsfeaturelistviewdelegate.cpp.

Member Data Documentation


const int QgsFeatureListViewDelegate::ICON_SIZE = 24

Definition at line 36 of file qgsfeaturelistviewdelegate.h.

The documentation for this class was generated from the following files: