]> git.sesse.net Git - kdenlive/commitdiff
Add signal to inform when the currently displayed frame was updated
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 22 Jul 2010 08:53:06 +0000 (08:53 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 22 Jul 2010 08:53:06 +0000 (08:53 +0000)
svn path=/trunk/kdenlive/; revision=4617

src/renderer.cpp
src/renderer.h

index 37118113fada5d57c75f4298df7f08c8710cabbe..e16c418b3c41e951496b25e0bada84dc3c0854e9 100644 (file)
@@ -1430,7 +1430,10 @@ const QString & Render::rendererName() const
 
 void Render::emitFrameNumber(double position)
 {
-    if (position == m_framePosition) return;
+    if (position == m_framePosition) {
+        emit frameUpdated((int) position);
+        return;
+    }
     m_framePosition = position;
     emit rendererPosition((int) position);
 }
index 370179ffd02b08d2559d2c17bb8fb8016bc35062..3c0e98dccb2601bfd589a25038b28d9859d1f724 100644 (file)
@@ -343,6 +343,8 @@ signals:
      *
      * Used in Mac OS X. */
     void showImageSignal(QImage);
+    /** @brief The renderer refreshed the current frame, but no seeking was done. */
+    void frameUpdated(int);
 
 public slots: