QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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=0)
 
void setEditSelectionModel (QItemSelectionModel *editSelectionModel)
 
Element positionToElement (const QPoint &pos)
 
void setFeatureSelectionModel (QgsFeatureSelectionModel *featureSelectionModel)
 
void setCurrentFeatureEdited (bool state)
 

Static Public Attributes

static int const sIconSize = 24
 

Protected Member Functions

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

Member Enumeration Documentation

Enumerator
EditElement 
SelectionElement 

Constructor & Destructor Documentation

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

Member Function Documentation

void QgsFeatureListViewDelegate::editButtonClicked ( QModelIndex &  index)
signal
void QgsFeatureListViewDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual
QgsFeatureListViewDelegate::Element QgsFeatureListViewDelegate::positionToElement ( const QPoint &  pos)
void QgsFeatureListViewDelegate::setCurrentFeatureEdited ( bool  state)
void QgsFeatureListViewDelegate::setEditSelectionModel ( QItemSelectionModel *  editSelectionModel)
void QgsFeatureListViewDelegate::setFeatureSelectionModel ( QgsFeatureSelectionModel featureSelectionModel)
QSize QgsFeatureListViewDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual

Member Data Documentation

int const QgsFeatureListViewDelegate::sIconSize = 24
static

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