Commit 343c2419 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Timeline: adding opacity when moving an item

parent eae96066
......@@ -480,6 +480,7 @@ void TracksView::mouseMoveEvent( QMouseEvent* event )
// The move action is obviously executed
m_actionMoveExecuted = true;
m_actionItem->setOpacity( 0.6 );
if ( m_actionRelativeX < 0 )
m_actionRelativeX = event->pos().x() - mapFromScene( m_actionItem->pos() ).x();
moveMediaItem( m_actionItem, QPoint( event->pos().x() - m_actionRelativeX, event->pos().y() ) );
......@@ -531,6 +532,8 @@ void TracksView::mouseReleaseEvent( QMouseEvent* event )
{
if ( m_actionMove && m_actionMoveExecuted )
{
m_actionItem->setOpacity( 1.0 );
GraphicsMovieItem* movieItem = qgraphicsitem_cast<GraphicsMovieItem*>( m_actionItem );
if ( movieItem )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment