A panel widget that can be shown in the map style dock.
More...
#include <qgsmaplayerconfigwidget.h>
A panel widget that can be shown in the map style dock.
- Since
- QGIS 2.16
Definition at line 115 of file qgsmaplayerconfigwidget.h.
◆ QgsMapLayerConfigWidget()
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget |
( |
QgsMapLayer * |
layer, |
|
|
QgsMapCanvas * |
canvas, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
A panel widget that can be shown in the map style dock.
- Parameters
-
layer | The layer active in the dock. |
canvas | The canvas object. |
parent | The parent of the widget. |
- Note
- The widget is created each time the panel is selected in the dock. Keep the loading light as possible for speed in the UI.
Definition at line 37 of file qgsmaplayerconfigwidget.cpp.
◆ apply
virtual void QgsMapLayerConfigWidget::apply |
( |
| ) |
|
|
pure virtualslot |
Called when changes to the layer need to be made.
Will be called when live update is enabled.
◆ dynamicTemporalControlToggled
void QgsMapLayerConfigWidget::dynamicTemporalControlToggled |
( |
bool |
enabled | ) |
|
|
signal |
Emitted whenever the dynamic temporal control option is toggled in the associated layer properties dialog.
- Note
- Not available in Python bindings
- Since
- QGIS 3.20
◆ focusDefaultWidget
void QgsMapLayerConfigWidget::focusDefaultWidget |
( |
| ) |
|
|
virtualslot |
◆ setMapLayerConfigWidgetContext()
Sets the context under which the widget is being shown.
Subclasses should take care to call the base class implementation when overriding this method.
Definition at line 45 of file qgsmaplayerconfigwidget.cpp.
◆ shouldTriggerLayerRepaint()
virtual bool QgsMapLayerConfigWidget::shouldTriggerLayerRepaint |
( |
| ) |
const |
|
inlinevirtual |
Whether this config widget changes map layer properties in a way that triggerRepaint() should be called for the layer after applying changes.
This is true
by default, but some config widgets (for example 3D rendering config) do not need layer repaint as they do not modify 2D map rendering.
- Since
- QGIS 3.8
Definition at line 136 of file qgsmaplayerconfigwidget.h.
◆ syncToLayer()
virtual void QgsMapLayerConfigWidget::syncToLayer |
( |
QgsMapLayer * |
layer | ) |
|
|
inlinevirtual |
◆ mLayer
◆ mMapCanvas
◆ mMapLayerConfigWidgetContext
The documentation for this class was generated from the following files: