16 #ifndef QGSFEATURELISTVIEW_H 17 #define QGSFEATURELISTVIEW_H 87 bool setDisplayExpression(
const QString &displayExpression );
96 const QString displayExpression()
const;
103 QString parserErrorString();
117 void setCurrentFeatureEdited(
bool state );
126 void mouseMoveEvent( QMouseEvent *event )
override;
127 void mousePressEvent( QMouseEvent *event )
override;
128 void mouseReleaseEvent( QMouseEvent *event )
override;
129 void keyPressEvent( QKeyEvent *event )
override;
130 void contextMenuEvent( QContextMenuEvent *event )
override;
139 void currentEditSelectionChanged(
QgsFeature &feat );
145 void displayExpressionChanged(
const QString &expression );
148 void aboutToChangeEditSelection(
bool &ok )
SIP_SKIP;
155 void willShowContextMenu(
QgsActionMenu *menu,
const QModelIndex &atIndex );
172 void setEditSelection(
const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
177 void selectAll()
override;
179 void repaintRequested(
const QModelIndexList &indexes );
180 void repaintRequested();
183 void editSelectionChanged(
const QItemSelection &deselected,
const QItemSelection &selected );
191 void ensureEditSelection(
bool inSelection =
false );
194 void selectRow(
const QModelIndex &index,
bool anchor );
198 QItemSelectionModel *mCurrentEditSelectionModel =
nullptr;
202 bool mEditSelectionDrag =
false;
204 QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag;
206 QTimer mUpdateEditSelectionTimer;
QSet< QgsFeatureId > QgsFeatureIds
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Shows a list of features and renders a edit button next to each feature.
QgsFeatureListModel * featureListModel()
Gets the featureListModel used by this view.
This class caches features of a given QgsVectorLayer.
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based data sets.