|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
Custom item delegate for feature list views. More...
#include <qgsfeaturelistviewdelegate.h>

Public Types | |
| enum | Element { EditElement , SelectionElement } |
Signals | |
| void | editButtonClicked (QModelIndex &index) |
| Emitted when the edit button is clicked for the feature with matching index. | |
Public Member Functions | |
| QgsFeatureListViewDelegate (QgsFeatureListModel *listModel, QObject *parent=nullptr) | |
| Element | positionToElement (QPoint pos) |
| void | setCurrentFeatureEdited (bool state) |
| void | setEditSelectionModel (QItemSelectionModel *editSelectionModel) |
| void | setFeatureSelectionModel (QgsFeatureSelectionModel *featureSelectionModel) |
Static Public Attributes | |
| static const int | ICON_SIZE = 24 |
Protected Member Functions | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
Custom item delegate for feature list views.
Definition at line 33 of file qgsfeaturelistviewdelegate.h.
| Enumerator | |
|---|---|
| EditElement | |
| SelectionElement | |
Definition at line 40 of file qgsfeaturelistviewdelegate.h.
|
explicit |
Definition at line 36 of file qgsfeaturelistviewdelegate.cpp.
|
signal |
Emitted when the edit button is clicked for the feature with matching index.
|
overrideprotected |
Definition at line 75 of file qgsfeaturelistviewdelegate.cpp.
| QgsFeatureListViewDelegate::Element QgsFeatureListViewDelegate::positionToElement | ( | QPoint | pos | ) |
Definition at line 41 of file qgsfeaturelistviewdelegate.cpp.
| void QgsFeatureListViewDelegate::setCurrentFeatureEdited | ( | bool | state | ) |
Definition at line 58 of file qgsfeaturelistviewdelegate.cpp.
| void QgsFeatureListViewDelegate::setEditSelectionModel | ( | QItemSelectionModel * | editSelectionModel | ) |
Definition at line 63 of file qgsfeaturelistviewdelegate.cpp.
| void QgsFeatureListViewDelegate::setFeatureSelectionModel | ( | QgsFeatureSelectionModel * | featureSelectionModel | ) |
Definition at line 53 of file qgsfeaturelistviewdelegate.cpp.
|
overrideprotected |
Definition at line 68 of file qgsfeaturelistviewdelegate.cpp.
|
static |
Definition at line 38 of file qgsfeaturelistviewdelegate.h.