QGIS API Documentation 3.43.0-Master (a93bf8b6462)
|
Graphical representation for the attribute drag and drop editor. More...
#include <qgsattributesformproperties.h>
Public Slots | |
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. | |
Public Member Functions | |
QgsAttributesFormBaseView (QgsVectorLayer *layer, QWidget *parent=nullptr) | |
Constructor for QgsAttributesFormBaseView, with the given parent. | |
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. | |
![]() | |
virtual | ~QgsExpressionContextGenerator ()=default |
Protected Attributes | |
QgsVectorLayer * | mLayer = nullptr |
QgsAttributesFormProxyModel * | mModel = nullptr |
Graphical representation for the attribute drag and drop editor.
Definition at line 204 of file qgsattributesformproperties.h.
|
explicit |
Constructor for QgsAttributesFormBaseView, with the given parent.
The given layer is used to build an expression context with the layer scope.
Definition at line 891 of file qgsattributesformproperties.cpp.
|
overridevirtual |
This method needs to be reimplemented in all classes which implement this interface and return an expression context.
Implements QgsExpressionContextGenerator.
Definition at line 905 of file qgsattributesformproperties.cpp.
QModelIndex QgsAttributesFormBaseView::firstSelectedIndex | ( | ) | const |
Returns the source model index corresponding to the first selected row.
Definition at line 897 of file qgsattributesformproperties.cpp.
|
slot |
Selects the first item that matches a itemType and a itemId.
Helps to keep in sync selection from both Attribute Widget view and Form Layout view.
Definition at line 918 of file qgsattributesformproperties.cpp.
|
slot |
Sets the filter text to the underlying proxy model.
text | Filter text to be used to filter source model items. |
Definition at line 935 of file qgsattributesformproperties.cpp.
|
protected |
Definition at line 242 of file qgsattributesformproperties.h.
|
protected |
Definition at line 243 of file qgsattributesformproperties.h.