Skip to content
Permalink
Browse files
Tiny clean up
  • Loading branch information
nyalldawson committed Nov 25, 2021
1 parent 82274e8 commit 23c4ead2fa0b287540971116aa53e4e59f4a9445
Showing with 9 additions and 2 deletions.
  1. +6 −2 src/core/layertree/qgslayertree.cpp
  2. +3 −0 src/core/layertree/qgslayertree.h
@@ -19,14 +19,18 @@

QgsLayerTree::QgsLayerTree()
{
connect( this, &QgsLayerTree::addedChildren, this, &QgsLayerTree::nodeAddedChildren );
connect( this, &QgsLayerTree::removedChildren, this, &QgsLayerTree::nodeRemovedChildren );
init();
}

QgsLayerTree::QgsLayerTree( const QgsLayerTree &other )
: QgsLayerTreeGroup( other )
, mCustomLayerOrder( other.mCustomLayerOrder )
, mHasCustomLayerOrder( other.mHasCustomLayerOrder )
{
init();
}

void QgsLayerTree::init()
{
connect( this, &QgsLayerTree::addedChildren, this, &QgsLayerTree::nodeAddedChildren );
connect( this, &QgsLayerTree::removedChildren, this, &QgsLayerTree::nodeRemovedChildren );
@@ -234,6 +234,9 @@ class CORE_EXPORT QgsLayerTree : public QgsLayerTreeGroup
private:
//! Copy constructor \see clone()
QgsLayerTree( const QgsLayerTree &other );

void init();

void addMissingLayers();
QgsWeakMapLayerPointerList mCustomLayerOrder;
bool mHasCustomLayerOrder = false;

0 comments on commit 23c4ead

Please sign in to comment.