[vlmc-devel] commit: GraphicsEffectItem: Triggering the "Move" command ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Wed Sep 8 21:14:24 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Sep  8 21:04:55 2010 +0200| [f70851ded41cd35913a7e106c816c66faa5691c8] | committer: Hugo Beauzée-Luyssen 

GraphicsEffectItem: Triggering the "Move" command

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

 src/Gui/timeline/GraphicsEffectItem.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/GraphicsEffectItem.cpp b/src/Gui/timeline/GraphicsEffectItem.cpp
index 5efa05e..9958a60 100644
--- a/src/Gui/timeline/GraphicsEffectItem.cpp
+++ b/src/Gui/timeline/GraphicsEffectItem.cpp
@@ -22,9 +22,11 @@
 
 #include "GraphicsEffectItem.h"
 
+#include "Commands.h"
 #include "EffectHelper.h"
 #include "Timeline.h"
 #include "TracksView.h"
+#include "TrackWorkflow.h"
 
 #include <QPainter>
 
@@ -211,7 +213,10 @@ void
 GraphicsEffectItem::triggerMove( TrackWorkflow *oldTrack, TrackWorkflow *newTrack,
                                  Workflow::Helper *helper, qint64 pos )
 {
-    //FIXME
+    EffectHelper    *eh = qobject_cast<EffectHelper*>( helper );
+    if ( eh == NULL )
+        return ;
+    Commands::trigger( new Commands::Effect::Move( eh, oldTrack, newTrack, pos ) );
 }
 
 void



More information about the Vlmc-devel mailing list