|
QGIS API Documentation
2.4.0-Chugiak
|
#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 |
Private Attributes | |
| QgsFeatureSelectionModel * | mFeatureSelectionModel |
| QItemSelectionModel * | mEditSelectionModel |
| QgsFeatureListModel * | mListModel |
| bool | mCurrentFeatureEdited |
| Set to true if the current edit selection has been edited. More... | |
Definition at line 14 of file qgsfeaturelistviewdelegate.h.
| Enumerator | |
|---|---|
| EditElement | |
| SelectionElement | |
Definition at line 21 of file qgsfeaturelistviewdelegate.h.
|
explicit |
Definition at line 16 of file qgsfeaturelistviewdelegate.cpp.
|
signal |
|
protectedvirtual |
Definition at line 57 of file qgsfeaturelistviewdelegate.cpp.
References QgsApplication::getThemePixmap(), icon(), QgsFeatureListModel::FeatureInfo::isEdited, QgsFeatureListModel::FeatureInfo::isNew, QgsFeatureSelectionModel::isSelected(), QgsFeatureListModel::mapToMaster(), mCurrentFeatureEdited, mEditSelectionModel, mFeatureSelectionModel, and mListModel.
| QgsFeatureListViewDelegate::Element QgsFeatureListViewDelegate::positionToElement | ( | const QPoint & | pos | ) |
Definition at line 24 of file qgsfeaturelistviewdelegate.cpp.
References EditElement, SelectionElement, and sIconSize.
Referenced by QgsFeatureListView::mousePressEvent().
| void QgsFeatureListViewDelegate::setCurrentFeatureEdited | ( | bool | state | ) |
Definition at line 41 of file qgsfeaturelistviewdelegate.cpp.
References mCurrentFeatureEdited.
Referenced by QgsFeatureListView::setCurrentFeatureEdited().
| void QgsFeatureListViewDelegate::setEditSelectionModel | ( | QItemSelectionModel * | editSelectionModel | ) |
Definition at line 46 of file qgsfeaturelistviewdelegate.cpp.
References mEditSelectionModel.
Referenced by QgsFeatureListView::setModel().
| void QgsFeatureListViewDelegate::setFeatureSelectionModel | ( | QgsFeatureSelectionModel * | featureSelectionModel | ) |
Definition at line 36 of file qgsfeaturelistviewdelegate.cpp.
References mFeatureSelectionModel.
Referenced by QgsFeatureListView::setModel().
|
protectedvirtual |
Definition at line 51 of file qgsfeaturelistviewdelegate.cpp.
References sIconSize.
|
private |
Set to true if the current edit selection has been edited.
Definition at line 49 of file qgsfeaturelistviewdelegate.h.
Referenced by paint(), and setCurrentFeatureEdited().
|
private |
Definition at line 46 of file qgsfeaturelistviewdelegate.h.
Referenced by paint(), and setEditSelectionModel().
|
private |
Definition at line 45 of file qgsfeaturelistviewdelegate.h.
Referenced by paint(), and setFeatureSelectionModel().
|
private |
Definition at line 47 of file qgsfeaturelistviewdelegate.h.
Referenced by paint().
|
static |
Definition at line 19 of file qgsfeaturelistviewdelegate.h.
Referenced by positionToElement(), and sizeHint().
1.8.7