Shows a list of features and renders a edit button next to each feature.
More...
#include <qgsfeaturelistview.h>
Shows a list of features and renders a edit button next to each feature.
Accepts a display expression to define the way, features are rendered. Uses a QgsFeatureListModel as source model.
Definition at line 46 of file qgsfeaturelistview.h.
QgsFeatureListView::QgsFeatureListView |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
void QgsFeatureListView::aboutToChangeEditSelection |
( |
bool & |
ok | ) |
|
|
signal |
- Note
- not available in Python bindings
void QgsFeatureListView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
overrideprotected |
void QgsFeatureListView::currentEditSelectionChanged |
( |
QgsFeature & |
feat | ) |
|
|
signal |
Is emitted, whenever the current edit selection has been changed.
- Parameters
-
feat | the feature, which will be edited. |
const QString QgsFeatureListView::displayExpression |
( |
| ) |
const |
Returns the expression which is currently used to render the features.
- Returns
- A string containing the currend display expression
- See also
- QgsExpression
Definition at line 100 of file qgsfeaturelistview.cpp.
void QgsFeatureListView::displayExpressionChanged |
( |
const QString & |
expression | ) |
|
|
signal |
Is emitted, whenever the display expression is successfully changed.
- Parameters
-
expression | The expression that was applied |
Gets the featureListModel used by this view.
- Returns
- The model in use
Definition at line 77 of file qgsfeaturelistview.h.
void QgsFeatureListView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
void QgsFeatureListView::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void QgsFeatureListView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void QgsFeatureListView::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
QString QgsFeatureListView::parserErrorString |
( |
| ) |
|
void QgsFeatureListView::repaintRequested |
( |
const QModelIndexList & |
indexes | ) |
|
|
slot |
void QgsFeatureListView::repaintRequested |
( |
| ) |
|
|
slot |
void QgsFeatureListView::selectAll |
( |
| ) |
|
|
overrideslot |
void QgsFeatureListView::setCurrentFeatureEdited |
( |
bool |
state | ) |
|
Sets if the currently shown form has received any edit events so far.
- Parameters
-
Definition at line 121 of file qgsfeaturelistview.cpp.
bool QgsFeatureListView::setDisplayExpression |
( |
const QString & |
displayExpression | ) |
|
The display expression is an expression used to render the fields into a single string which is displaied.
- Parameters
-
displayExpression | The expression used to render the feature |
- See also
- QgsExpression
Definition at line 87 of file qgsfeaturelistview.cpp.
void QgsFeatureListView::setEditSelection |
( |
const QgsFeatureIds & |
fids | ) |
|
|
slot |
Set the feature(s) to be edited.
- Parameters
-
fids | A list of features to be edited |
Definition at line 184 of file qgsfeaturelistview.cpp.
void QgsFeatureListView::setEditSelection |
( |
const QModelIndex & |
index, |
|
|
QItemSelectionModel::SelectionFlags |
command |
|
) |
| |
|
slot |
Set the feature(s) to be edited.
- Parameters
-
index | The selection to set |
command | selection update mode |
Definition at line 200 of file qgsfeaturelistview.cpp.
setFeatureSelectionManager
- Parameters
-
featureSelectionManager | We will take ownership |
Definition at line 444 of file qgsfeaturelistview.cpp.
void QgsFeatureListView::willShowContextMenu |
( |
QgsActionMenu * |
menu, |
|
|
const QModelIndex & |
atIndex |
|
) |
| |
|
signal |
Is emitted, when the context menu is created to add the specific actions to it.
- Parameters
-
menu | is the already created context menu |
atIndex | is the position of the current feature in the model |
The documentation for this class was generated from the following files: