Commit 4ee756ca authored by Christophe Courtaut's avatar Christophe Courtaut
Browse files

Cosmetics

parent f22165db
...@@ -48,7 +48,7 @@ Media* Library::getClip( const QString& path ) ...@@ -48,7 +48,7 @@ Media* Library::getClip( const QString& path )
QHash<QUuid, Media*>::iterator it; QHash<QUuid, Media*>::iterator it;
QHash<QUuid, Media*>::iterator ite = m_medias.end(); QHash<QUuid, Media*>::iterator ite = m_medias.end();
for ( it = m_medias.begin(); it != ite; ++it ) for ( it = m_medias.begin(); it != ite; ++it )
if ( ((Media*)it.value())->getFileInfo()->absoluteFilePath() == path) if ( ((Media*)it.value())->getFileInfo()->absoluteFilePath() == path )
return it.value(); return it.value();
return NULL; return NULL;
} }
......
...@@ -87,7 +87,7 @@ void MainWindow::setupLibrary() ...@@ -87,7 +87,7 @@ void MainWindow::setupLibrary()
tr( "Media Library" ), tr( "Media Library" ),
Qt::AllDockWidgetAreas, Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures, QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea ); Qt::LeftDockWidgetArea );
//Connecting GUI and Frontend : //Connecting GUI and Frontend :
connect( libraryWidget, connect( libraryWidget,
......
...@@ -89,7 +89,7 @@ void PreviewWidget::dropEvent( QDropEvent* event ) ...@@ -89,7 +89,7 @@ void PreviewWidget::dropEvent( QDropEvent* event )
media = lib->getClip( event->mimeData()->urls()[0].path() ); media = lib->getClip( event->mimeData()->urls()[0].path() );
} }
else else
media = Library::getInstance()->getClip( QUuid( (const QString& )event->mimeData()->data( "vlmc/uuid" ) ) ); media = Library::getInstance()->getClip( QUuid( ( const QString& )event->mimeData()->data( "vlmc/uuid" ) ) );
media->flushParameters(); media->flushParameters();
m_mediaPlayer->setMedia( media->getVLCMedia() ); m_mediaPlayer->setMedia( media->getVLCMedia() );
......
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