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

Graphical representation for the attribute drag and drop editor. More...

#include <qgsattributesformproperties.h>

Inheritance diagram for QgsAttributesFormBaseView:
Inheritance graph
[legend]

Public Slots

void selectFirstMatchingItem (const QgsAttributesFormData::AttributesFormItemType &itemType, const QString &itemId)
 Selects the first item that matches a itemType and a itemId.
 

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.
 
- Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default
 

Protected Attributes

QgsVectorLayermLayer = nullptr
 

Detailed Description

Graphical representation for the attribute drag and drop editor.

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

Definition at line 200 of file qgsattributesformproperties.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormBaseView()

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

Member Function Documentation

◆ createExpressionContext()

QgsExpressionContext QgsAttributesFormBaseView::createExpressionContext ( ) const
overridevirtual

This method needs to be reimplemented in all classes which implement this interface and return an expression context.

Implements QgsExpressionContextGenerator.

Definition at line 888 of file qgsattributesformproperties.cpp.

◆ selectFirstMatchingItem

void QgsAttributesFormBaseView::selectFirstMatchingItem ( const QgsAttributesFormData::AttributesFormItemType itemType,
const QString &  itemId 
)
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 871 of file qgsattributesformproperties.cpp.

Member Data Documentation

◆ mLayer

QgsVectorLayer* QgsAttributesFormBaseView::mLayer = nullptr
protected

Definition at line 224 of file qgsattributesformproperties.h.


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