- // insert region sub-effects
- int i = 0;
- while (regionEffects.contains(QString("filter%1").arg(i))) {
- QString filterid = regionEffects.value(QString("filter%1.kdenlive_id").arg(i));
- QString filtertag = regionEffects.value(QString("filter%1.tag").arg(i));
- QDomElement subclipeffect = getEffectByTag(filtertag, filterid).cloneNode().toElement();
- QDomNodeList subclipeffectparams = subclipeffect.childNodes();
- subclipeffect.setAttribute("region_ix", i);
- QMap<QString, QString>::const_iterator j = regionEffects.constBegin();
- while (j != regionEffects.constEnd()) {
- if (j.key().startsWith(QString("filter%1.").arg(i))) {
- QString pname = j.key().section('.', 1, -1);
- adjustparameterValue(subclipeffectparams, pname, j.value());
- }
- ++j;
- }
- currenteffect.appendChild(currenteffect.ownerDocument().importNode(subclipeffect, true));
- ++i;
- }
- }
+ // insert region sub-effects
+ int i = 0;
+ while (regionEffects.contains(QString("filter%1").arg(i))) {
+ QString filterid = regionEffects.value(QString("filter%1.kdenlive_id").arg(i));
+ QString filtertag = regionEffects.value(QString("filter%1.tag").arg(i));
+ QDomElement subclipeffect = getEffectByTag(filtertag, filterid).cloneNode().toElement();
+ QDomNodeList subclipeffectparams = subclipeffect.childNodes();
+ subclipeffect.setAttribute("region_ix", i);
+ QMap<QString, QString>::const_iterator j = regionEffects.constBegin();
+ while (j != regionEffects.constEnd()) {
+ if (j.key().startsWith(QString("filter%1.").arg(i))) {
+ QString pname = j.key().section('.', 1, -1);
+ adjustparameterValue(subclipeffectparams, pname, j.value());
+ }
+ ++j;
+ }
+ currenteffect.appendChild(currenteffect.ownerDocument().importNode(subclipeffect, true));
+ ++i;
+ }
+ }