Logo Search packages:      
Sourcecode: kdenlive version File versions

void KdenliveDoc::deleteContents (  ) 

deletes the document's contents

Definition at line 160 of file kdenlivedoc.cpp.

References ClipManager::clear(), clipListUpdated(), framesPerSecond(), m_clipHierarch, and m_clipManager.

Referenced by closeDocument(), and newDocument().

{
    kdDebug() << "deleting contents..." << endl;

    /*delete m_projectClip;

    m_projectClip = new DocClipProject(KdenliveSettings::defaultfps(), KdenliveSettings::defaultwidth(), KdenliveSettings::defaultheight());
    connectProjectClip();*/

    if (m_clipHierarch) {
      delete m_clipHierarch;
      m_clipHierarch = 0;
    }

    //emit trackListChanged();

    m_clipManager.clear();

    setProjectClip(new DocClipProject(framesPerSecond(), KdenliveSettings::defaultwidth(), KdenliveSettings::defaultheight()));

    emit clipListUpdated();
}


Generated by  Doxygen 1.6.0   Back to index