62 QList<QgsMapLayer *> myResultList;
65 if ( layer->
name() == layerName )
67 myResultList << layer;
75 QList<QgsMapLayer *> theMapLayers,
79 QList<QgsMapLayer *> myResultList;
80 for (
int i = 0; i < theMapLayers.size(); ++i )
83 if ( !myLayer || !myLayer->
isValid() )
98 if ( myResultList.count() > 0 )
114 QList<QgsMapLayer *> addedLayers;
115 addedLayers =
addMapLayers( QList<QgsMapLayer*>() << theMapLayer, addToLegend, takeOwnership );
116 return addedLayers.isEmpty() ? 0 : addedLayers[0];
125 foreach (
const QString &myId, theLayerIds )
157 QMap<QString, QgsMapLayer *>::iterator it;
161 it.value()->setCacheImage( 0 );
167 QMap<QString, QgsMapLayer *>::iterator it;