QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
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... | |
Single variable definition for use within a QgsExpressionContextScope.
Definition at line 85 of file qgsexpressioncontext.h.
|
inline |
Constructor for StaticVariable.
name | variable name (should be unique within the QgsExpressionContextScope) |
value | intial variable value |
readOnly | true if variable should not be editable by users |
Definition at line 92 of file qgsexpressioncontext.h.
QString QgsExpressionContextScope::StaticVariable::name |
Variable name.
Definition at line 99 of file qgsexpressioncontext.h.
bool QgsExpressionContextScope::StaticVariable::readOnly |
True if variable should not be editable by users.
Definition at line 105 of file qgsexpressioncontext.h.
QVariant QgsExpressionContextScope::StaticVariable::value |
Variable value.
Definition at line 102 of file qgsexpressioncontext.h.