]> git.sesse.net Git - kdenlive/commitdiff
Rotoscoping timeline: mouse wheel can only move cursor.
authorTill Theato <root@ttill.de>
Sun, 6 Mar 2011 09:25:26 +0000 (09:25 +0000)
committerTill Theato <root@ttill.de>
Sun, 6 Mar 2011 09:25:26 +0000 (09:25 +0000)
Moving a keyframe might be somewhat unexpected.
A keyframe's position can be changed precisely since keyframes snap to the timeline cursor.

svn path=/trunk/kdenlive/; revision=5482

src/simplekeyframes/simpletimelinewidget.cpp

index bf8e4500f5131b1827add030d214709b110a84a7..e2c409bbdbdb4346256149d481bc31df625f2651 100644 (file)
@@ -244,13 +244,13 @@ void SimpleTimelineWidget::mouseDoubleClickEvent(QMouseEvent* event)
 void SimpleTimelineWidget::wheelEvent(QWheelEvent* event)
 {
     int change = event->delta() < 0 ? -1 : 1;
-    if (m_currentKeyframe > 0) {
+    /*if (m_currentKeyframe > 0) {
         m_currentKeyframe = qBound(0, m_currentKeyframe + change, m_duration);
         emit keyframeMoved(m_currentKeyframeOriginal, m_currentKeyframe);
-    } else {
+    } else { */
         m_position = qBound(0, m_position + change, m_duration);
         emit positionChanged(m_position);
-    }
+//     }
     emit atKeyframe(m_keyframes.contains(m_position));
     update();
 }