|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
An expression item that can be used in the QgsExpressionBuilderWidget tree. More...
#include <qgsexpressiontreeview.h>

Public Types | |
| enum | ItemType { Header , Field , ExpressionNode } |
Public Member Functions | |
| QgsExpressionItem (const QString &label, const QString &expressionText, const QString &helpText, QgsExpressionItem::ItemType itemType=ExpressionNode) | |
| QgsExpressionItem (const QString &label, const QString &expressionText, QgsExpressionItem::ItemType itemType=ExpressionNode) | |
| QString | getExpressionText () const |
| QString | getHelpText () const |
| Gets the help text that is associated with this expression item. | |
| QgsExpressionItem::ItemType | getItemType () const |
| Gets the type of expression item, e.g., header, field, ExpressionNode. | |
| void | setHelpText (const QString &helpText) |
| Set the help text for the current item. | |
Static Public Attributes | |
| static const int | CUSTOM_SORT_ROLE = Qt::UserRole + 1 |
| Custom sort order role. | |
| static const int | ITEM_NAME_ROLE = Qt::UserRole + 4 |
| Item name role. | |
| static const int | ITEM_TYPE_ROLE = Qt::UserRole + 2 |
| Item type role. | |
| static const int | LAYER_ID_ROLE = Qt::UserRole + 5 |
| Layer ID role. | |
| static const int | SEARCH_TAGS_ROLE = Qt::UserRole + 3 |
| Search tags role. | |
An expression item that can be used in the QgsExpressionBuilderWidget tree.
Definition at line 39 of file qgsexpressiontreeview.h.
| Enumerator | |
|---|---|
| Header | |
| Field | |
| ExpressionNode | |
Definition at line 42 of file qgsexpressiontreeview.h.
|
inline |
Definition at line 49 of file qgsexpressiontreeview.h.
|
inline |
Definition at line 58 of file qgsexpressiontreeview.h.
|
inline |
Definition at line 66 of file qgsexpressiontreeview.h.
|
inline |
Gets the help text that is associated with this expression item.
Definition at line 73 of file qgsexpressiontreeview.h.
|
inline |
Gets the type of expression item, e.g., header, field, ExpressionNode.
Definition at line 87 of file qgsexpressiontreeview.h.
|
inline |
Set the help text for the current item.
Definition at line 80 of file qgsexpressiontreeview.h.
|
static |
Custom sort order role.
Definition at line 90 of file qgsexpressiontreeview.h.
|
static |
Item name role.
Definition at line 96 of file qgsexpressiontreeview.h.
|
static |
Item type role.
Definition at line 92 of file qgsexpressiontreeview.h.
|
static |
|
static |
Search tags role.
Definition at line 94 of file qgsexpressiontreeview.h.