/** * Sets the layer of this entity to the layer with the given name */ void RS_Entity::setLayer(const RS_String& name) { RS_Graphic* graphic = getGraphic(); if (graphic!=NULL) { layer = graphic->findLayer(name); } else { layer = NULL; } }
/** * Sets the layer of this entity to the layer with the given name */ void RS_Entity::setLayer(const QString& name) { RS_Graphic* graphic = getGraphic(); if (graphic) { layer = graphic->findLayer(name); } else { layer = nullptr; } }