QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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
[legend]

Public Types

enum  Element { EditElement, SelectionElement }
 

Signals

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

Enumerator
EditElement 
SelectionElement 

Definition at line 38 of file qgsfeaturelistviewdelegate.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file qgsfeaturelistviewdelegate.cpp.

Member Function Documentation

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

Definition at line 71 of file qgsfeaturelistviewdelegate.cpp.

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

Definition at line 37 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setCurrentFeatureEdited ( bool  state)

Definition at line 54 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setEditSelectionModel ( QItemSelectionModel *  editSelectionModel)

Definition at line 59 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setFeatureSelectionModel ( QgsFeatureSelectionModel featureSelectionModel)

Definition at line 49 of file qgsfeaturelistviewdelegate.cpp.

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

Definition at line 64 of file qgsfeaturelistviewdelegate.cpp.

Member Data Documentation

const int QgsFeatureListViewDelegate::ICON_SIZE = 24
static

Definition at line 36 of file qgsfeaturelistviewdelegate.h.


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