QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsFieldFormatterContext Class Reference

A context for field formatter containing information like the project. More...

#include <qgsfieldformatter.h>

Public Member Functions

 QgsFieldFormatterContext ()=default
 Constructor. More...
 
QgsProjectproject () const
 Returns the project used in field formatter. More...
 
void setProject (QgsProject *project)
 Sets the project used in field formatter. More...
 

Detailed Description

A context for field formatter containing information like the project.

Since
QGIS 3.12

Definition at line 33 of file qgsfieldformatter.h.

Constructor & Destructor Documentation

◆ QgsFieldFormatterContext()

QgsFieldFormatterContext::QgsFieldFormatterContext ( )
default

Constructor.

Member Function Documentation

◆ project()

QgsProject* QgsFieldFormatterContext::project ( ) const
inline

Returns the project used in field formatter.

See also
setProject()

Definition at line 46 of file qgsfieldformatter.h.

◆ setProject()

void QgsFieldFormatterContext::setProject ( QgsProject project)
inline

Sets the project used in field formatter.

See also
project()

Definition at line 52 of file qgsfieldformatter.h.


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