QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Signals | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
QgsFeatureListViewDelegate Class Reference

#include <qgsfeaturelistviewdelegate.h>

Public Types

enum  Element { EditElement, SelectionElement }

Signals

void editButtonClicked (QModelIndex &index)

Public Member Functions

 QgsFeatureListViewDelegate (QgsFeatureListModel *listModel, QObject *parent=0)
Element positionToElement (const 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 14 of file qgsfeaturelistviewdelegate.h.

Member Enumeration Documentation

Enumerator:
EditElement 
SelectionElement 

Definition at line 21 of file qgsfeaturelistviewdelegate.h.

Constructor & Destructor Documentation

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

Definition at line 16 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
overrideprotectedvirtual

Definition at line 58 of file qgsfeaturelistviewdelegate.cpp.

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

Definition at line 25 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setCurrentFeatureEdited ( bool  state)

Definition at line 42 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setEditSelectionModel ( QItemSelectionModel *  editSelectionModel)

Definition at line 47 of file qgsfeaturelistviewdelegate.cpp.

void QgsFeatureListViewDelegate::setFeatureSelectionModel ( QgsFeatureSelectionModel featureSelectionModel)

Definition at line 37 of file qgsfeaturelistviewdelegate.cpp.

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

Definition at line 52 of file qgsfeaturelistviewdelegate.cpp.

Member Data Documentation

int const QgsFeatureListViewDelegate::sIconSize = 24
static

Definition at line 19 of file qgsfeaturelistviewdelegate.h.


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