QGIS API Documentation
2.2.0-Valmiera
|
#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) |
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 |
Private Attributes | |
QgsFeatureSelectionModel * | mFeatureSelectionModel |
QItemSelectionModel * | mEditSelectionModel |
QgsFeatureListModel * | mListModel |
Definition at line 14 of file qgsfeaturelistviewdelegate.h.
Definition at line 21 of file qgsfeaturelistviewdelegate.h.
|
explicit |
Definition at line 16 of file qgsfeaturelistviewdelegate.cpp.
|
signal |
|
protectedvirtual |
Definition at line 51 of file qgsfeaturelistviewdelegate.cpp.
References QgsApplication::getThemePixmap(), icon(), QgsFeatureListModel::FeatureInfo::isEdited, QgsFeatureListModel::FeatureInfo::isNew, QgsFeatureSelectionModel::isSelected(), QgsFeatureListModel::mapToMaster(), mEditSelectionModel, mFeatureSelectionModel, and mListModel.
QgsFeatureListViewDelegate::Element QgsFeatureListViewDelegate::positionToElement | ( | const QPoint & | pos | ) |
Definition at line 23 of file qgsfeaturelistviewdelegate.cpp.
References EditElement, SelectionElement, and sIconSize.
Referenced by QgsFeatureListView::mousePressEvent().
void QgsFeatureListViewDelegate::setEditSelectionModel | ( | QItemSelectionModel * | editSelectionModel | ) |
Definition at line 40 of file qgsfeaturelistviewdelegate.cpp.
References mEditSelectionModel.
Referenced by QgsFeatureListView::setModel().
void QgsFeatureListViewDelegate::setFeatureSelectionModel | ( | QgsFeatureSelectionModel * | featureSelectionModel | ) |
Definition at line 35 of file qgsfeaturelistviewdelegate.cpp.
References mFeatureSelectionModel.
Referenced by QgsFeatureListView::setModel().
|
protectedvirtual |
Definition at line 45 of file qgsfeaturelistviewdelegate.cpp.
References sIconSize.
|
private |
Definition at line 44 of file qgsfeaturelistviewdelegate.h.
Referenced by paint(), and setEditSelectionModel().
|
private |
Definition at line 43 of file qgsfeaturelistviewdelegate.h.
Referenced by paint(), and setFeatureSelectionModel().
|
private |
Definition at line 45 of file qgsfeaturelistviewdelegate.h.
Referenced by paint().
|
static |
Definition at line 19 of file qgsfeaturelistviewdelegate.h.
Referenced by positionToElement(), and sizeHint().