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

GenTime Gui::KTimeLine::timeUnderMouse ( double  posX  ) 

Returns the correct "time under mouse", taking into account whether or not snap to frame is on or off, and other relevant effects.

Definition at line 538 of file ktimeline.cpp.

References m_framesPerSecond, and snapToFrame().

Referenced by TrackPanelSpacerFunction::mouseMoved(), TrackPanelSpacerFunction::mousePressed(), TrackPanelRazorFunction::mousePressed(), TrackPanelRazorFunction::mouseReleased(), Gui::KdenliveApp::slotAddTransition(), Gui::KdenliveApp::slotDeleteTransition(), Gui::KdenliveApp::slotDisplayTimeLineContextMenu(), Gui::KdenliveApp::slotEditPaste(), and Gui::KdenliveApp::slotRemoveSpace().

                                             {

  GenTime value( (int) m_ruler->mapLocalToValue(posX), m_framesPerSecond);

      if (snapToFrame())
          value = GenTime((int) floor(value.frames(m_framesPerSecond)) , m_framesPerSecond);

      return value;
    }


Generated by  Doxygen 1.6.0   Back to index