]> git.sesse.net Git - kdenlive/blobdiff - src/smallruler.cpp
Show icon on track header if track has effects applied
[kdenlive] / src / smallruler.cpp
index c002c5c46c4a03978b4d592595ca2ac49023a019..c7e0ec1765e6524ae909ce4c317615d1f3ae9742 100644 (file)
@@ -121,16 +121,17 @@ void SmallRuler::mouseMoveEvent(QMouseEvent * event)
     }
 }
 
-void SmallRuler::slotNewValue(int value)
+bool SmallRuler::slotNewValue(int value)
 {
+    if (value == m_cursorFramePosition) return false;
     m_cursorFramePosition = value;
     int oldPos = m_cursorPosition;
     m_cursorPosition = value * m_scale;
-    if (oldPos == m_cursorPosition) return;
     const int offset = 6;
     const int x = qMin(oldPos, m_cursorPosition);
     const int w = qAbs(oldPos - m_cursorPosition);
     update(x - offset, 4, w + 2 * offset, 6);
+    return true;
 }
 
 //virtual