Logo Search packages:      
Sourcecode: kdenlive version File versions

Effect * KdenliveDoc::createEffect ( const QDomElement &  element  )  const

Creates an effect from the given xml.

Definition at line 842 of file kdenlivedoc.cpp.

References Effect::createEffect(), and effectDescription().

Referenced by Command::KAddEffectCommand::addEffect(), and EffectDrag::decode().

{
    Effect *effect = 0;

    if (element.tagName() != "effect") {
      kdWarning() <<
          "KdenliveDoc::createEffect() element is not an effect, trying to parse anyway..."
          << endl;
    }

    EffectDesc *desc = effectDescription(element.attribute("id"));
    if (desc) {
      effect = Effect::createEffect(*desc, element);
    } else {
      kdWarning() <<
          "KdenliveDoc::createEffect() cannot find effect description "
          << element.attribute("effect") << endl;
    }

    return effect;
}


Generated by  Doxygen 1.6.0   Back to index