+ QString nodeName = options.at(i).nodeName();
+
+
+
+ if(nodeName == "effect")
+ {
+ QDomNode effectName = options.at(i).attributes().namedItem("name");
+
+ if(effectName.isNull())
+ {
+ qDebug() << "Missing name for effect";
+ }
+ else
+ {
+ if(!element->setEffect(effectName.toAttr().value()))
+ {
+ qDebug() << "Invalid effect: " << effectName.toAttr().value();
+ }
+ else
+ {
+ QDomNodeList themeOptions = options.at(i).childNodes();
+
+ for(int i = 0; i < themeOptions.size(); i++)
+ {
+ if(!element->setEffectAttribute(themeOptions.at(i).nodeName(), themeOptions.at(i).toElement().text()))
+ {
+ qDebug() << "Warning: invalid effect option: " << themeOptions.at(i).nodeName();
+ }
+ }
+
+ element->applyEffect();
+ }
+ }
+ }
+ else