QGIS API Documentation  2.99.0-Master (c558d51)
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, Qt::CheckState state)
 

Protected Attributes

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

Definition at line 40 of file qgscustomlayerorderwidget.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file qgscustomlayerorderwidget.cpp.

Member Function Documentation

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

Definition at line 73 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::bridgeHasCustomLayerOrderChanged ( bool  state)
protectedslot

Definition at line 66 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::modelUpdated ( )
protectedslot

Definition at line 88 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::nodeVisibilityChanged ( QgsLayerTreeNode node,
Qt::CheckState  state 
)
protectedslot

Definition at line 79 of file qgscustomlayerorderwidget.cpp.

Member Data Documentation

QgsLayerTreeMapCanvasBridge* QgsCustomLayerOrderWidget::mBridge
protected

Definition at line 56 of file qgscustomlayerorderwidget.h.

QCheckBox* QgsCustomLayerOrderWidget::mChkOverride
protected

Definition at line 58 of file qgscustomlayerorderwidget.h.

CustomLayerOrderModel* QgsCustomLayerOrderWidget::mModel
protected

Definition at line 59 of file qgscustomlayerorderwidget.h.

QListView* QgsCustomLayerOrderWidget::mView
protected

Definition at line 60 of file qgscustomlayerorderwidget.h.


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