QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Public Attributes | List of all members
QgsExpressionContextScope::StaticVariable Struct Reference

Single variable definition for use within a QgsExpressionContextScope. More...

#include <qgsexpressioncontext.h>

Public Member Functions

 StaticVariable (const QString &name=QString(), const QVariant &value=QVariant(), bool readOnly=false)
 Constructor for StaticVariable. More...
 

Public Attributes

QString name
 Variable name. More...
 
bool readOnly
 True if variable should not be editable by users. More...
 
QVariant value
 Variable value. More...
 

Detailed Description

Single variable definition for use within a QgsExpressionContextScope.

Definition at line 85 of file qgsexpressioncontext.h.

Constructor & Destructor Documentation

◆ StaticVariable()

QgsExpressionContextScope::StaticVariable::StaticVariable ( const QString name = QString(),
const QVariant value = QVariant(),
bool  readOnly = false 
)
inline

Constructor for StaticVariable.

Parameters
namevariable name (should be unique within the QgsExpressionContextScope)
valueintial variable value
readOnlytrue if variable should not be editable by users

Definition at line 92 of file qgsexpressioncontext.h.

Member Data Documentation

◆ name

QString QgsExpressionContextScope::StaticVariable::name

Variable name.

Definition at line 99 of file qgsexpressioncontext.h.

◆ readOnly

bool QgsExpressionContextScope::StaticVariable::readOnly

True if variable should not be editable by users.

Definition at line 105 of file qgsexpressioncontext.h.

◆ value

QVariant QgsExpressionContextScope::StaticVariable::value

Variable value.

Definition at line 102 of file qgsexpressioncontext.h.


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