Commit d4be8ac8 authored by Clement CHAVANCE's avatar Clement CHAVANCE
Browse files

fixed various bugs that were relative to showing the clip list

parent f0cc52c5
......@@ -123,6 +123,14 @@ void MediaCellView::mouseMoveEvent( QMouseEvent* event )
mimeData->setData( "vlmc/uuid", m_uuid.toString().toAscii() );
QDrag* drag = new QDrag( this );
drag->setMimeData( mimeData );
//FIXME : change the way the library handles Clips
Clip* clip = Library::getInstance()->getClip( m_uuid );
if ( 0 == clip )
return ;
//getting the media from the current Clip
Media* parent = Library::getInstance()->getClip( m_uuid )->getParent();
if ( 0 == parent )
return ;
drag->setPixmap( Library::getInstance()->getClip( m_uuid )->getParent()->getSnapshot().scaled( 100, 100, Qt::KeepAspectRatio ) );
drag->exec( Qt::CopyAction | Qt::MoveAction, Qt::CopyAction );
}
......
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