|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Provides an interface for attributes form tree indicator providers. More...
#include <qgsattributesformtreeviewindicatorprovider.h>

Public Slots | |
| void | updateItemIndicator (QgsAttributesFormItem *item) |
| Updates the state of a the indicator for the given item. | |
Public Member Functions | |
| QgsAttributesFormTreeViewIndicatorProvider (QgsAttributesFormBaseView *view) | |
| Constructor for QgsAttributesFormTreeViewIndicatorProvider. | |
| bool | isEnabled () const |
| Returns whether the provider is enabled or not. | |
| void | setEnabled (bool enabled) |
| Enables or disables the provider. | |
Protected Slots | |
| void | onAddedChildren (QgsAttributesFormItem *item, int indexFrom, int indexTo) |
| Connects to signals of new items added to the tree. | |
Protected Attributes | |
| QgsAttributesFormBaseView * | mAttributesFormTreeView = nullptr |
| bool | mEnabled = false |
| QSet< QgsAttributesFormTreeViewIndicator * > | mIndicators |
Provides an interface for attributes form tree indicator providers.
Subclasses must override:
Definition at line 39 of file qgsattributesformtreeviewindicatorprovider.h.
|
explicit |
Constructor for QgsAttributesFormTreeViewIndicatorProvider.
The provider gets parented to the view.
Definition at line 23 of file qgsattributesformtreeviewindicatorprovider.cpp.
| bool QgsAttributesFormTreeViewIndicatorProvider::isEnabled | ( | ) | const |
Returns whether the provider is enabled or not.
Definition at line 103 of file qgsattributesformtreeviewindicatorprovider.cpp.
|
protectedslot |
Connects to signals of new items added to the tree.
Definition at line 29 of file qgsattributesformtreeviewindicatorprovider.cpp.
| void QgsAttributesFormTreeViewIndicatorProvider::setEnabled | ( | bool | enabled | ) |
Enables or disables the provider.
| enabled | Boolead value which specifies whether to enable (true) or disable (false) the provider. |
Definition at line 108 of file qgsattributesformtreeviewindicatorprovider.cpp.
|
slot |
Updates the state of a the indicator for the given item.
If the indicator does not exist, it will be created. If the indicator exists, but is no longer accepted, it will be removed.
Definition at line 60 of file qgsattributesformtreeviewindicatorprovider.cpp.
|
protected |
Definition at line 92 of file qgsattributesformtreeviewindicatorprovider.h.
|
protected |
Definition at line 94 of file qgsattributesformtreeviewindicatorprovider.h.
|
protected |
Definition at line 93 of file qgsattributesformtreeviewindicatorprovider.h.