QGIS API Documentation  2.99.0-Master (0a63d1f)
Public Member Functions | Protected Slots | Protected Attributes | List of all members
QgsCustomLayerOrderWidget Class Reference

The QgsCustomLayerOrderWidget class provides a list box where the user can define custom order for drawing of layers. More...

#include <qgscustomlayerorderwidget.h>

Inheritance diagram for QgsCustomLayerOrderWidget:
Inheritance graph

Public Member Functions

 QgsCustomLayerOrderWidget (QgsLayerTreeMapCanvasBridge *bridge, QWidget *parent=nullptr)

Protected Slots

void bridgeCustomLayerOrderChanged (const QStringList &order)
void bridgeHasCustomLayerOrderChanged (bool state)
void modelUpdated ()
void nodeVisibilityChanged (QgsLayerTreeNode *node)
 Slot triggered when the ivsibility of a node changes. More...

Protected Attributes

QCheckBox * mChkOverride
CustomLayerOrderModel * mModel
QListView * mView

Detailed Description

The QgsCustomLayerOrderWidget class provides a list box where the user can define custom order for drawing of layers.

It also features a checkbox for enabling or disabling the custom order. Any changes made by the user are automatically propagated to the assigned QgsLayerTreeMapCanvasBridge. Also, any updates to the layer tree cause refresh of the list.

See also
added in 2.4

Definition at line 41 of file qgscustomlayerorderwidget.h.

Constructor & Destructor Documentation

◆ QgsCustomLayerOrderWidget()

QgsCustomLayerOrderWidget::QgsCustomLayerOrderWidget ( QgsLayerTreeMapCanvasBridge bridge,
QWidget *  parent = nullptr 

Definition at line 32 of file qgscustomlayerorderwidget.cpp.

Member Function Documentation

◆ bridgeCustomLayerOrderChanged

void QgsCustomLayerOrderWidget::bridgeCustomLayerOrderChanged ( const QStringList &  order)

Definition at line 73 of file qgscustomlayerorderwidget.cpp.

◆ bridgeHasCustomLayerOrderChanged

void QgsCustomLayerOrderWidget::bridgeHasCustomLayerOrderChanged ( bool  state)

Definition at line 66 of file qgscustomlayerorderwidget.cpp.

◆ modelUpdated

void QgsCustomLayerOrderWidget::modelUpdated ( )

Definition at line 87 of file qgscustomlayerorderwidget.cpp.

◆ nodeVisibilityChanged

void QgsCustomLayerOrderWidget::nodeVisibilityChanged ( QgsLayerTreeNode node)

Slot triggered when the ivsibility of a node changes.

Definition at line 79 of file qgscustomlayerorderwidget.cpp.

Member Data Documentation

◆ mBridge

QgsLayerTreeMapCanvasBridge* QgsCustomLayerOrderWidget::mBridge

Definition at line 58 of file qgscustomlayerorderwidget.h.

◆ mChkOverride

QCheckBox* QgsCustomLayerOrderWidget::mChkOverride

Definition at line 60 of file qgscustomlayerorderwidget.h.

◆ mModel

CustomLayerOrderModel* QgsCustomLayerOrderWidget::mModel

Definition at line 61 of file qgscustomlayerorderwidget.h.

◆ mView

QListView* QgsCustomLayerOrderWidget::mView

Definition at line 62 of file qgscustomlayerorderwidget.h.

The documentation for this class was generated from the following files: