[vlmc-devel] commit: TrackWorkflow: Emitting clipMoved signal. Fixes undo for clip moving. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Thu Aug 26 23:25:41 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Aug 26 23:25:14 2010 +0200| [57dc6d220c98d858a39e5e7380b8c97b0a819868] | committer: Hugo Beauzée-Luyssen 

TrackWorkflow: Emitting clipMoved signal. Fixes undo for clip moving.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=57dc6d220c98d858a39e5e7380b8c97b0a819868
---

 src/Gui/timeline/TracksView.cpp |    3 ++-
 src/Workflow/TrackWorkflow.cpp  |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 2e43ea8..6341ddb 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -348,7 +348,8 @@ TracksView::moveMediaItem( TrackWorkflow *tw, ClipHelper *ch, qint64 time )
     {
         AbstractGraphicsMediaItem* item =
                 dynamic_cast<AbstractGraphicsMediaItem*>( sceneItems.at( i ) );
-        if ( !item || item->uuid() != ch->uuid() ) continue;
+        if ( !item || item->uuid() != ch->uuid() )
+            continue;
         moveMediaItem( item, tw->trackId(), time );
     }
     updateDuration();
diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index 13faf2a..521f4aa 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -378,6 +378,7 @@ void            TrackWorkflow::moveClip( const QUuid& id, qint64 startingFrame )
             m_clips[startingFrame] = cw;
             cw->requireResync();
             computeLength();
+            emit clipMoved( this, cw->getClipHelper(), startingFrame );
             return ;
         }
         ++it;



More information about the Vlmc-devel mailing list