Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

QDomNode KdenliveDoc::getProducerById ( int  id  )  [slot]

Retreive a producer's westley definition by id

Creates a list of producers

Definition at line 363 of file kdenlivedoc.cpp.

References m_projectClip, and DocClipProject::producersList.

{
    QDomDocumentFragment prods = m_projectClip->producersList;
    QDomNode n = prods.firstChild();
    QDomElement e;
    while (!n.isNull()) {
      e = n.toElement();
      if (!e.isNull() && e.tagName() == "producer") {
          if (e.attribute("id") == QString::number(id)) break;
      }
      n = n.nextSibling();
    }
    return n;
}


Generated by  Doxygen 1.6.0   Back to index