]> git.sesse.net Git - kdenlive/commitdiff
rotoscoping: obey to frames vs. timecode setting
authorTill Theato <root@ttill.de>
Thu, 3 Mar 2011 20:09:36 +0000 (20:09 +0000)
committerTill Theato <root@ttill.de>
Thu, 3 Mar 2011 20:09:36 +0000 (20:09 +0000)
svn path=/trunk/kdenlive/; revision=5471

src/effectstackedit.cpp
src/rotoscoping/rotowidget.cpp
src/rotoscoping/rotowidget.h
src/simplekeyframes/simplekeyframewidget.cpp
src/simplekeyframes/simplekeyframewidget.h

index a7a220b53118c3671a9787771701bcbef6d9cab7..3971fcc8b4b7d79f9b71aca2e04b151ac0c99ba8 100644 (file)
@@ -160,11 +160,13 @@ void EffectStackEdit::updateTimecodeFormat()
                 geom->updateTimecodeFormat();
             }
             break;
-        }
-        if (type == "position") {
+        } else if (type == "position") {
             PositionEdit *posi = ((PositionEdit*)m_valueItems[paramName+"position"]);
             posi->updateTimecodeFormat();
             break;
+        } else if (type == "roto-spline") {
+            RotoWidget *widget = static_cast<RotoWidget *>(m_valueItems[paramName]);
+            widget->updateTimecodeFormat();
         }
     }
 }
index b1dddf74dd5d9c4fa77862f95cef447602ddd084..937116951d7c714ca40994198a0d51bb49bbea22 100644 (file)
@@ -299,4 +299,9 @@ void RotoWidget::slotMoveKeyframe(int oldPos, int newPos)
     emit valueChanged();
 }
 
+void RotoWidget::updateTimecodeFormat()
+{
+    m_keyframeWidget->updateTimecodeFormat();
+}
+
 #include "rotowidget.moc"
index cb5a7828344733ab50f4b080583fcd45612f0709..dc385f673e062c4cc7fedf0b9f3b14a03726b15d 100644 (file)
@@ -38,6 +38,7 @@ public:
     virtual ~RotoWidget();
 
     QString getSpline();
+    void updateTimecodeFormat();
 
 public slots:
     /** @brief Switches from normal monitor to monitor scene according to @param show. */
index 92491019b743aa896b8924f97e097c81d31298fa..d600e3b0257f5628c2aa238f7f2c006dffe8b1df 100644 (file)
@@ -112,5 +112,9 @@ void SimpleKeyframeWidget::addKeyframe(int pos)
     blockSignals(false);
 }
 
+void SimpleKeyframeWidget::updateTimecodeFormat()
+{
+    m_time->slotUpdateTimeCodeFormat();
+}
 
 #include "simplekeyframewidget.moc"
index 0af2752ad086f666f2540b6977a3f8e5527d1bfb..be98c53cab86e7b45fb74661a660e4ddde4e37d6 100644 (file)
@@ -41,6 +41,8 @@ public:
     void setKeyframes(const QList <int> &keyframes);
     void addKeyframe(int pos = -1);
 
+    void updateTimecodeFormat();
+
 public slots:
     void slotSetPosition(int pos = -1, bool update = true);