QGIS API Documentation 3.43.0-Master (56aa1fd18d7)
Public Member Functions | Protected Member Functions | List of all members
QgsAttributesFormLayoutView Class Reference

Graphical representation for the form layout while configuring attributes forms. More...

#include <qgsattributesformproperties.h>

Inheritance diagram for QgsAttributesFormLayoutView:
Inheritance graph
[legend]

Public Member Functions

 QgsAttributesFormLayoutView (QgsVectorLayer *layer, QWidget *parent=nullptr)
 Constructor for QgsAttributesFormLayoutView, with the given parent.
 
QgsAttributesFormLayoutModelformLayoutModel () const
 Access the underlying QgsAttributesFormLayoutModel model.
 
void setModel (QAbstractItemModel *model) override
 Overridden setModel() from base class. Only QgsAttributesFormLayoutModel is an acceptable model.
 
- Public Member Functions inherited from QgsAttributesFormBaseView
 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.
 
- 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.
 
- Protected Attributes inherited from QgsAttributesFormBaseView
QgsVectorLayermLayer = nullptr
 

Detailed Description

Graphical representation for the form layout while configuring attributes forms.

Warning
Not part of stable API and may change in future QGIS releases.
Since
QGIS 3.44

Definition at line 265 of file qgsattributesformproperties.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormLayoutView()

QgsAttributesFormLayoutView::QgsAttributesFormLayoutView ( QgsVectorLayer layer,
QWidget *  parent = nullptr 
)
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 922 of file qgsattributesformproperties.cpp.

Member Function Documentation

◆ dragEnterEvent()

void QgsAttributesFormLayoutView::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Definition at line 970 of file qgsattributesformproperties.cpp.

◆ dragMoveEvent()

void QgsAttributesFormLayoutView::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotected

Is called when mouse is moved over attributes tree before a drop event.

Definition at line 995 of file qgsattributesformproperties.cpp.

◆ dropEvent()

void QgsAttributesFormLayoutView::dropEvent ( QDropEvent *  event)
overrideprotected

Definition at line 1016 of file qgsattributesformproperties.cpp.

◆ formLayoutModel()

QgsAttributesFormLayoutModel * QgsAttributesFormLayoutView::formLayoutModel ( ) const

Access the underlying QgsAttributesFormLayoutModel model.

Definition at line 940 of file qgsattributesformproperties.cpp.

◆ setModel()

void QgsAttributesFormLayoutView::setModel ( QAbstractItemModel *  model)
override

Overridden setModel() from base class. Only QgsAttributesFormLayoutModel is an acceptable model.

Definition at line 928 of file qgsattributesformproperties.cpp.


The documentation for this class was generated from the following files: