16 #ifndef QGSATTRIBUTELISTVIEW_H 17 #define QGSATTRIBUTELISTVIEW_H 85 bool setDisplayExpression(
const QString displayExpression );
94 const QString displayExpression()
const;
101 QString parserErrorString();
115 void setCurrentFeatureEdited(
bool state );
118 virtual void mouseMoveEvent( QMouseEvent *event )
override;
119 virtual void mousePressEvent( QMouseEvent *event )
override;
120 virtual void mouseReleaseEvent( QMouseEvent *event )
override;
121 virtual void keyPressEvent( QKeyEvent *event )
override;
122 virtual void contextMenuEvent( QContextMenuEvent *event )
override;
130 void currentEditSelectionChanged(
QgsFeature &feat );
136 void displayExpressionChanged(
const QString expression );
138 void aboutToChangeEditSelection(
bool& ok );
154 void setEditSelection(
const QModelIndex&
index, QItemSelectionModel::SelectionFlags command );
159 virtual void selectAll()
override;
161 void repaintRequested( QModelIndexList indexes );
162 void repaintRequested();
165 void editSelectionChanged( QItemSelection deselected, QItemSelection selected );
168 void selectRow(
const QModelIndex &index,
bool anchor );
171 QItemSelectionModel* mCurrentEditSelectionModel;
174 bool mEditSelectionDrag;
176 QItemSelectionModel::SelectionFlags mCtrlDragSelectionFlag;
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()
Get the featureListModel used by this view.
virtual ~QgsFeatureListView()
Destructor.
This class caches features of a given QgsVectorLayer.
Represents a vector layer which manages a vector based data sets.