]> git.sesse.net Git - kdenlive/commitdiff
Show statusbar tooltip when mouse is over a clip allowing an action (keyframe, add...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 28 Jun 2010 16:09:14 +0000 (16:09 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 28 Jun 2010 16:09:14 +0000 (16:09 +0000)
http://www.kdenlive.org/mantis/view.php?id=1663

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

src/customtrackview.cpp

index eab1a6fd136c57c4298caed41934d02bc4e13622..2c93814468fb5e0ab2d7eaf05759cb8465fbbcc6 100644 (file)
@@ -572,8 +572,16 @@ void CustomTrackView::mouseMoveEvent(QMouseEvent * event)
             setCursor(KCursor("left_side", Qt::SizeHorCursor));
         else if (opMode == RESIZEEND)
             setCursor(KCursor("right_side", Qt::SizeHorCursor));
-        else if (opMode == FADEIN || opMode == FADEOUT || opMode == TRANSITIONSTART || opMode == TRANSITIONEND || opMode == KEYFRAME)
+        else if (opMode == FADEIN || opMode == FADEOUT) {
             setCursor(Qt::PointingHandCursor);
+            emit displayMessage(i18n("Drag to add or resize a fade effect."), InformationMessage);
+        } else if (opMode == TRANSITIONSTART || opMode == TRANSITIONEND) {
+            setCursor(Qt::PointingHandCursor);
+            emit displayMessage(i18n("Click to add a transition."), InformationMessage);
+        } else if (opMode == KEYFRAME) {
+            setCursor(Qt::PointingHandCursor);
+            emit displayMessage(i18n("Move keyframe above or below clip to remove it, double click to add a new one."), InformationMessage);
+        }
     } // no clip under mouse
     else if (m_tool == RAZORTOOL) {
         event->accept();