QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Public Member Functions | List of all members
QgsLayoutColumnSourceDelegate Class Reference

A delegate for showing column attribute source as a QgsFieldExpressionWidget. More...

#include <qgslayoutattributeselectiondialog.h>

Inheritance diagram for QgsLayoutColumnSourceDelegate:
Inheritance graph
[legend]

Public Member Functions

 QgsLayoutColumnSourceDelegate (QgsVectorLayer *vlayer, QObject *parent=nullptr, const QgsLayoutObject *layoutObject=nullptr)
 constructor More...
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
- Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default
 

Detailed Description

A delegate for showing column attribute source as a QgsFieldExpressionWidget.

Note
This class is not a part of public API
Since
QGIS 3.12

Definition at line 211 of file qgslayoutattributeselectiondialog.h.

Constructor & Destructor Documentation

◆ QgsLayoutColumnSourceDelegate()

QgsLayoutColumnSourceDelegate::QgsLayoutColumnSourceDelegate ( QgsVectorLayer vlayer,
QObject *  parent = nullptr,
const QgsLayoutObject layoutObject = nullptr 
)

constructor

Definition at line 418 of file qgslayoutattributeselectiondialog.cpp.

Member Function Documentation

◆ createEditor()

QWidget * QgsLayoutColumnSourceDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 439 of file qgslayoutattributeselectiondialog.cpp.

◆ setEditorData()

void QgsLayoutColumnSourceDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Definition at line 453 of file qgslayoutattributeselectiondialog.cpp.

◆ setModelData()

void QgsLayoutColumnSourceDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

Definition at line 462 of file qgslayoutattributeselectiondialog.cpp.

◆ updateEditorGeometry()

void QgsLayoutColumnSourceDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 469 of file qgslayoutattributeselectiondialog.cpp.


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