QGIS API Documentation  2.99.0-Master (a18066b)
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
[legend]

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

QgsLayerTreeMapCanvasBridgemBridge = nullptr
 
QCheckBox * mChkOverride = nullptr
 
CustomLayerOrderModel * mModel = nullptr
 
QListView * mView = nullptr
 

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
QgsLayerTreeMapCanvasBridge
Note
added in 2.4

Definition at line 41 of file qgscustomlayerorderwidget.h.

Constructor & Destructor Documentation

◆ QgsCustomLayerOrderWidget()

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

Definition at line 32 of file qgscustomlayerorderwidget.cpp.

Member Function Documentation

◆ bridgeCustomLayerOrderChanged

void QgsCustomLayerOrderWidget::bridgeCustomLayerOrderChanged ( const QStringList &  order)
protectedslot

Definition at line 73 of file qgscustomlayerorderwidget.cpp.

◆ bridgeHasCustomLayerOrderChanged

void QgsCustomLayerOrderWidget::bridgeHasCustomLayerOrderChanged ( bool  state)
protectedslot

Definition at line 66 of file qgscustomlayerorderwidget.cpp.

◆ modelUpdated

void QgsCustomLayerOrderWidget::modelUpdated ( )
protectedslot

Definition at line 87 of file qgscustomlayerorderwidget.cpp.

◆ nodeVisibilityChanged

void QgsCustomLayerOrderWidget::nodeVisibilityChanged ( QgsLayerTreeNode node)
protectedslot

Slot triggered when the ivsibility of a node changes.

Definition at line 79 of file qgscustomlayerorderwidget.cpp.

Member Data Documentation

◆ mBridge

QgsLayerTreeMapCanvasBridge* QgsCustomLayerOrderWidget::mBridge = nullptr
protected

Definition at line 58 of file qgscustomlayerorderwidget.h.

◆ mChkOverride

QCheckBox* QgsCustomLayerOrderWidget::mChkOverride = nullptr
protected

Definition at line 60 of file qgscustomlayerorderwidget.h.

◆ mModel

CustomLayerOrderModel* QgsCustomLayerOrderWidget::mModel = nullptr
protected

Definition at line 61 of file qgscustomlayerorderwidget.h.

◆ mView

QListView* QgsCustomLayerOrderWidget::mView = nullptr
protected

Definition at line 62 of file qgscustomlayerorderwidget.h.


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