[vlmc-devel] commit: TracksView: Fix initial effect position ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Wed Sep 15 00:53:49 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Sep 14 23:17:32 2010 +0200| [7dda65a55cf5b59ceb93ff355eb10c50ed873c15] | committer: Hugo Beauzée-Luyssen 

TracksView: Fix initial effect position

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

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

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 61818a3..26f6a4e 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -384,7 +384,7 @@ TracksView::dragMoveEvent( QDragMoveEvent *event )
             AbstractGraphicsMediaItem   *item = itemList.first();
             m_dragEffectItem->setWidth( item->clipHelper()->length() );
             m_dragEffectItem->setStartPos( item->startPos() );
-            m_dragEffectItem->setTrack( getTrack( m_dragEffectItem->trackType(), 0 ) );
+            m_dragEffectItem->setTrack( item->track() );
         }
         else
         {
@@ -455,7 +455,6 @@ TracksView::moveItem( AbstractGraphicsItem *item, QPoint position )
     GraphicsEffectItem  *effectItem = qgraphicsitem_cast<GraphicsEffectItem*>( item );
     if ( effectItem != NULL )
         mappedPos = boundEffectInClip( effectItem, mappedPos );
-
     QList<QGraphicsItem*> list = items( 0, position.y() );
     for ( int i = 0; i < list.size(); ++i )
     {
@@ -778,7 +777,6 @@ TracksView::dropEvent( QDropEvent *event )
             Commands::trigger( new Commands::Clip::Add( m_dragVideoItem->clipHelper(),
                                                                     m_dragVideoItem->track()->trackWorkflow(),
                                                                     (qint64)mappedXPos ) );
-            qDebug() << m_dragVideoItem->pos();
             m_dragVideoItem = NULL;
         }
 



More information about the Vlmc-devel mailing list