Logo Search packages:      
Sourcecode: kdenlive version File versions

void KdenliveDoc::addClipNode ( const QString &  parent,
DocumentBaseNode *  newNode 
)

Add the given base node to the named parent

Definition at line 540 of file kdenlivedoc.cpp.

References clipListUpdated(), findClipNode(), m_app, and Gui::KdenliveApp::refreshVirtualZone().

Referenced by LoadProjectKinoFilter::loadSeq().

{
    kdDebug() << "*** DOCUMENT adding clip: " << newNode->name() << endl;
    DocumentBaseNode *node = findClipNode(parent);
    if (node) {
      node->addChild(newNode);
      emit clipListUpdated();
    } else {
      kdWarning() <<
          "Could not add document node to KdenliveDoc : parent clip does not exist!"
          << endl;
      kdWarning() << "causes memory leak!!!" << endl;
    }
    m_app->refreshVirtualZone();
}


Generated by  Doxygen 1.6.0   Back to index