16 #ifndef QGSFEATURELISTVIEW_H 17 #define QGSFEATURELISTVIEW_H 86 bool setDisplayExpression(
const QString &displayExpression );
95 const QString displayExpression()
const;
102 QString parserErrorString();
116 void setCurrentFeatureEdited(
bool state );
125 void mouseMoveEvent( QMouseEvent *event )
override;
126 void mousePressEvent( QMouseEvent *event )
override;
127 void mouseReleaseEvent( QMouseEvent *event )
override;
128 void keyPressEvent( QKeyEvent *event )
override;
129 void contextMenuEvent( QContextMenuEvent *event )
override;
138 void currentEditSelectionChanged(
QgsFeature &feat );
144 void displayExpressionChanged(
const QString &expression );
147 void aboutToChangeEditSelection(
bool &ok )
SIP_SKIP;
154 void willShowContextMenu(
QgsActionMenu *menu,
const QModelIndex &atIndex );
171 void setEditSelection(
const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
176 void selectAll()
override;
178 void repaintRequested(
const QModelIndexList &indexes );
179 void repaintRequested();
182 void editSelectionChanged(
const QItemSelection &deselected,
const QItemSelection &selected );
190 void ensureEditSelection(
bool inSelection =
false );
193 void selectRow(
const QModelIndex &index,
bool anchor );
197 QItemSelectionModel *mCurrentEditSelectionModel =
nullptr;
201 bool mEditSelectionDrag =
false;
203 QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag;
205 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.