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