|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Indicator that can be used in an Attributes Form tree view to display icons next to field items. More...
#include <qgsattributesformtreeviewindicator.h>

Signals | |
| void | changed () |
| Emitted when the indicator changes state (e.g. | |
Public Member Functions | |
| QgsAttributesFormTreeViewIndicator (QObject *parent=nullptr) | |
| Constructs an indicator, optionally transferring ownership to a parent QObject. | |
| QIcon | icon () const |
| Indicator icon that will be displayed in the Attributes Form tree view. | |
| void | setIcon (const QIcon &icon) |
| Sets indicator icon that will be displayed in the Attributes Form tree view. | |
| void | setToolTip (const QString &tip) |
| Sets tool tip text for the indicator. | |
| QString | toolTip () const |
| Returns tool tip text that will be shown when user hovers mouse over the indicator. | |
Indicator that can be used in an Attributes Form tree view to display icons next to field items.
They add extra context to the field item, making it easier to get an overview of constraints and default values.
Definition at line 36 of file qgsattributesformtreeviewindicator.h.
|
explicit |
Constructs an indicator, optionally transferring ownership to a parent QObject.
Definition at line 20 of file qgsattributesformtreeviewindicator.cpp.
|
signal |
Emitted when the indicator changes state (e.g.
icon).
| QIcon QgsAttributesFormTreeViewIndicator::icon | ( | ) | const |
Indicator icon that will be displayed in the Attributes Form tree view.
Definition at line 25 of file qgsattributesformtreeviewindicator.cpp.
| void QgsAttributesFormTreeViewIndicator::setIcon | ( | const QIcon & | icon | ) |
Sets indicator icon that will be displayed in the Attributes Form tree view.
Definition at line 30 of file qgsattributesformtreeviewindicator.cpp.
| void QgsAttributesFormTreeViewIndicator::setToolTip | ( | const QString & | tip | ) |
Sets tool tip text for the indicator.
Definition at line 41 of file qgsattributesformtreeviewindicator.cpp.
| QString QgsAttributesFormTreeViewIndicator::toolTip | ( | ) | const |
Returns tool tip text that will be shown when user hovers mouse over the indicator.
Definition at line 36 of file qgsattributesformtreeviewindicator.cpp.