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

bool TrackPanelRazorFunction::mouseApplies ( Gui::KTrackPanel panel,
QMouseEvent *  event 
) const [virtual]

Returns true if the specified position should cause this function to activate, otherwise returns false.

Implements TrackPanelFunction.

Definition at line 39 of file trackpanelrazorfunction.cpp.

References Gui::KTrackPanel::documentTrackIndex(), KdenliveDoc::framesPerSecond(), DocTrackBase::getClipAt(), Gui::KTrackPanel::hasDocumentTrackIndex(), Gui::KTimeLine::mapLocalToValue(), and KdenliveDoc::track().

    DocClipRef *clip = 0;
    if (panel->hasDocumentTrackIndex()) {
      DocTrackBase *track =
      if (track) {
            GenTime mouseTime((int)(m_timeline->mapLocalToValue(event->x())),
              clip = track->getClipAt(mouseTime);
    return clip;

Generated by  Doxygen 1.6.0   Back to index