Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::slotDeleteTransition (  )  [private, slot]

Delete the selected clip's transition

Definition at line 4308 of file kdenlive.cpp.

References addCommand(), getDocument(), KdenliveDoc::indirectlyModified(), Gui::TransitionDialog::isActiveTransition(), KdenliveDoc::projectClip(), DocClipProject::selectedClip(), Gui::TransitionDialog::setTransition(), Gui::KTimeLine::timeUnderMouse(), and Gui::KTimeLine::trackView().

Referenced by initActions().

                                           {
        if (getDocument()->projectClip().hasSelectedClips() == 0) {
            KMessageBox::sorry(this, i18n("Please select a clip to delete transition"));
            return;
        }
      GenTime mouseTime;
      QPoint position = mousePosition();
      mouseTime = m_timeline->timeUnderMouse(m_timeline->trackView()->mapFromGlobal(position).x());
      Transition *transit = getDocument()->projectClip().selectedClip()->transitionAt(mouseTime);
      if (transit) {
          if (m_transitionPanel->isActiveTransition(transit)) m_transitionPanel->setTransition(0); 
          addCommand(Command::KAddTransitionCommand::removeTransition(getDocument(), getDocument()->projectClip().selectedClip(), transit), true);
          getDocument()->indirectlyModified();
      }
    }


Generated by  Doxygen 1.6.0   Back to index