Logo Search packages:      
Sourcecode: kdenlive version File versions

DocClipBase * ClipManager::findClipById ( uint  id  ) 

Find and return the AVFile with the id specified, or return null is no file matches.

Definition at line 578 of file clipmanager.cpp.

References m_clipList.

Referenced by insertClip(), and Gui::KdenliveApp::slotProjectDeleteClips().

{
    DocClipBase *result = NULL;

    QPtrListIterator < DocClipBase > itt(m_clipList);
    while (itt.current()) {
        if (itt.current()->getId() == id) {
          result = itt.current();
            break;
      }
      ++itt;
    }

    return result;
}


Generated by  Doxygen 1.6.0   Back to index