32 std::unique_ptr< QgsLightSource > res;
33 if ( element.nodeName() == QLatin1String(
"point-light" ) )
35 res = std::make_unique< QgsPointLightSettings >();
37 else if ( element.nodeName() == QLatin1String(
"directional-light" ) )
39 res = std::make_unique< QgsDirectionalLightSettings >();
43 res->readXml( element, context );
The class is used as a container of context for various read/write operations on other objects.