QGIS API Documentation  2.6.0-Brighton
 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)
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: