28 , mRegistryRemovingLayers( false )
30 , mNewLayersVisible( true )
31 , mInsertionPointGroup( root )
32 , mInsertionPointIndex( 0 )
52 QList<QgsLayerTreeNode*> nodes;
62 if ( !projectFile.isEmpty() )
64 nodeLayer->setCustomProperty(
"embedded", 1 );
65 nodeLayer->setCustomProperty(
"embedded_project", projectFile );
78 QgsDebugMsg( QString(
"%1 layers will be removed, enabled:%2" ).arg( layerIds.count() ).arg(
mEnabled ) );
87 foreach ( QString layerId, layerIds )
100 for (
int i = indexFrom; i <= indexTo; ++i )
134 QStringList toRemove;
140 QgsDebugMsg( QString(
"%1 layers will be removed" ).arg( toRemove.count() ) );
145 QMetaObject::invokeMethod(
this,
"removeLayersFromRegistry", Qt::QueuedConnection, Q_ARG( QStringList, toRemove ) );