#include <qgslayertreeembeddedwidgetregistry.h>
Provider interface to be implemented in order to introduce new kinds of embedded widgets for use in layer tree. Embedded widgets are assigned per individual map layers and they are shown before any legend entries.
- See also
- QgsLayerTreeEmbeddedWidgetRegistry
- Since
- QGIS 2.16
Definition at line 35 of file qgslayertreeembeddedwidgetregistry.h.
◆ ~QgsLayerTreeEmbeddedWidgetProvider()
virtual QgsLayerTreeEmbeddedWidgetProvider::~QgsLayerTreeEmbeddedWidgetProvider |
( |
| ) |
|
|
virtualdefault |
◆ createWidget()
virtual QWidget* QgsLayerTreeEmbeddedWidgetProvider::createWidget |
( |
QgsMapLayer * |
layer, |
|
|
int |
widgetIndex |
|
) |
| |
|
pure virtual |
Factory to create widgets.
The returned widget is owned by the caller. The widgetIndex argument may be used to identify which widget is being created (useful when using multiple widgets from the same provider for one layer).
◆ id()
virtual QString QgsLayerTreeEmbeddedWidgetProvider::id |
( |
| ) |
const |
|
pure virtual |
Unique name of the provider (among other providers)
◆ name()
virtual QString QgsLayerTreeEmbeddedWidgetProvider::name |
( |
| ) |
const |
|
pure virtual |
Human readable name - may be translatable with tr()
◆ supportsLayer()
virtual bool QgsLayerTreeEmbeddedWidgetProvider::supportsLayer |
( |
QgsMapLayer * |
layer | ) |
|
|
pure virtual |
Whether it makes sense to use this widget for a particular layer.
The documentation for this class was generated from the following file: