|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Graphical representation for the form layout while configuring attributes forms. More...
#include <qgsattributesformview.h>

Public Member Functions | |
| QgsAttributesFormLayoutView (QgsVectorLayer *layer, QWidget *parent=nullptr) | |
| Constructor for QgsAttributesFormLayoutView, with the given parent. | |
| void | setModel (QAbstractItemModel *model) override |
| Overridden setModel() from base class. Only QgsAttributesFormProxyModel is an acceptable model. | |
| Public Member Functions inherited from QgsAttributesFormBaseView | |
| QgsAttributesFormBaseView (QgsVectorLayer *layer, QWidget *parent=nullptr) | |
| Constructor for QgsAttributesFormBaseView, with the given parent. | |
| void | addIndicator (QgsAttributesFormItem *item, QgsAttributesFormTreeViewIndicator *indicator) |
| Adds the indicator to the given item. | |
| QgsExpressionContext | createExpressionContext () const override |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. | |
| QModelIndex | firstSelectedIndex () const |
| Returns the source model index corresponding to the first selected row. | |
| const QList< QgsAttributesFormTreeViewIndicator * > | indicators (const QModelIndex &index) const |
| Returns the list of indicators associated with a given index. | |
| const QList< QgsAttributesFormTreeViewIndicator * > | indicators (QgsAttributesFormItem *item) const |
| Returns the list of indicators associated with a given item. | |
| void | removeAllIndicators () |
| Removes all indicators in the current view. | |
| void | removeIndicator (QgsAttributesFormItem *item, QgsAttributesFormTreeViewIndicator *indicator) |
| Removes the indicator from the given item. | |
| QgsAttributesFormModel * | sourceModel () const |
| Returns the underlying QgsAttributesFormModel model where the view gets data from. | |
| Public Member Functions inherited from QgsExpressionContextGenerator | |
| virtual | ~QgsExpressionContextGenerator ()=default |
Protected Member Functions | |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| Is called when mouse is moved over attributes tree before a drop event. | |
| void | dropEvent (QDropEvent *event) override |
Additional Inherited Members | |
| Public Slots inherited from QgsAttributesFormBaseView | |
| void | selectFirstMatchingItem (const QgsAttributesFormData::AttributesFormItemType &itemType, const QString &itemId) |
| Selects the first item that matches a itemType and a itemId. | |
| void | setFilterText (const QString &text) |
| Sets the filter text to the underlying proxy model. | |
| Protected Attributes inherited from QgsAttributesFormBaseView | |
| QHash< QgsAttributesFormItem *, QList< QgsAttributesFormTreeViewIndicator * > > | mIndicators |
| Storage of indicators used with the tree view. | |
| QgsVectorLayer * | mLayer = nullptr |
| QgsAttributesFormProxyModel * | mModel = nullptr |
Graphical representation for the form layout while configuring attributes forms.
Definition at line 161 of file qgsattributesformview.h.
|
explicit |
Constructor for QgsAttributesFormLayoutView, with the given parent.
The given layer is used to build an expression context with the layer scope.
Definition at line 172 of file qgsattributesformview.cpp.
|
overrideprotected |
Definition at line 217 of file qgsattributesformview.cpp.
|
overrideprotected |
Is called when mouse is moved over attributes tree before a drop event.
Definition at line 242 of file qgsattributesformview.cpp.
|
overrideprotected |
Definition at line 263 of file qgsattributesformview.cpp.
|
override |
Overridden setModel() from base class. Only QgsAttributesFormProxyModel is an acceptable model.
Definition at line 178 of file qgsattributesformview.cpp.