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 );
A container for the context for various read/write operations on objects.