]> git.sesse.net Git - kdenlive/blobdiff - src/geometryval.cpp
Allow to add image sequence through the usual "add clip" dialog
[kdenlive] / src / geometryval.cpp
index 4c7e608ee7c63dd53540a7e3a59cfada14072793..a4879463a0cd30241e1c2cb413d070a0b8c1e091 100644 (file)
@@ -252,7 +252,6 @@ void Geometryval::slotPositionChanged(int pos, bool seek)
     if (pos == -1) {
         pos = m_timePos.getValue();
     }
-    kDebug() << "// POS CHANGED: " << pos << ", SEK: " << seek;
     if (seek && KdenliveSettings::transitionfollowcursor()) emit seekToPos(pos + m_startPoint);
     m_timePos.setValue(pos);
     //spinPos->setValue(pos);
@@ -424,6 +423,16 @@ void Geometryval::setupParam(const QDomElement par, int minFrame, int maxFrame)
     connect(spinTransp, SIGNAL(valueChanged(int)), this , SLOT(slotTransparencyChanged(int)));
 }
 
+void Geometryval::slotSyncPosition(int relTimelinePos)
+{
+    if (m_timePos.maximum() > 0 && KdenliveSettings::transitionfollowcursor()) {
+        relTimelinePos = qMax(0, relTimelinePos);
+        relTimelinePos = qMin(relTimelinePos, m_timePos.maximum());
+        if (relTimelinePos != m_timePos.getValue())
+            slotPositionChanged(relTimelinePos, false);
+    }
+}
+
 void Geometryval::updateTransitionPath()
 {
     if (m_fixedMode) return;