QGIS API Documentation  2.99.0-Master (b2587b7)
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 int const sIconSize = 24

Protected Member Functions

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

Detailed Description

Definition at line 29 of file qgsfeaturelistviewdelegate.h.

Member Enumeration Documentation

§ Element


Definition at line 36 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 73 of file qgsfeaturelistviewdelegate.cpp.

§ positionToElement()

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

Definition at line 39 of file qgsfeaturelistviewdelegate.cpp.

§ setCurrentFeatureEdited()

void QgsFeatureListViewDelegate::setCurrentFeatureEdited ( bool  state)

Definition at line 56 of file qgsfeaturelistviewdelegate.cpp.

§ setEditSelectionModel()

void QgsFeatureListViewDelegate::setEditSelectionModel ( QItemSelectionModel *  editSelectionModel)

Definition at line 61 of file qgsfeaturelistviewdelegate.cpp.

§ setFeatureSelectionModel()

void QgsFeatureListViewDelegate::setFeatureSelectionModel ( QgsFeatureSelectionModel featureSelectionModel)

Definition at line 51 of file qgsfeaturelistviewdelegate.cpp.

§ sizeHint()

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

Definition at line 66 of file qgsfeaturelistviewdelegate.cpp.

Member Data Documentation

§ sIconSize

int const QgsFeatureListViewDelegate::sIconSize = 24

Definition at line 34 of file qgsfeaturelistviewdelegate.h.

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