Commit 08e5a31b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Ludovic Fauvet

Remove unneeded slots in import/

Same as previous commit
Signed-off-by: default avatarLudovic Fauvet <etix@l0cal.com>
parent cf6838db
......@@ -38,8 +38,8 @@ ImportMediaListController::~ImportMediaListController()
void ImportMediaListController::addMedia( Media* media )
{
ImportMediaCellView* cell = new ImportMediaCellView( media->getUuid() );
connect( cell, SIGNAL( cellSelected( const QUuid& ) ), this, SLOT( mediaSelection( const QUuid& ) ) );
connect( cell, SIGNAL( cellDeleted( const QUuid& ) ), this, SLOT( mediaDeletion( const QUuid& ) ) );
connect( cell, SIGNAL( cellSelected( const QUuid& ) ), this, SIGNAL( mediaSelected( const QUuid& ) ) );
connect( cell, SIGNAL( cellDeleted( const QUuid& ) ), this, SIGNAL( mediaDeleted( const QUuid& ) ) );
connect( cell, SIGNAL( arrowClicked( const QUuid& ) ), this, SIGNAL( showClipListAsked( const QUuid& ) ) );
cell->setTitle( media->getFileName() );
......@@ -75,7 +75,7 @@ void ImportMediaListController::removeMedia( const QUuid& uuid )
void ImportMediaListController::addClip( Clip* clip )
{
ImportMediaCellView* cell = new ImportMediaCellView( clip->getUuid() );
connect( cell, SIGNAL( cellSelected( const QUuid& ) ), this, SLOT( clipSelection( const QUuid& ) ) );
connect( cell, SIGNAL( cellSelected( const QUuid& ) ), this, SIGNAL( clipSelected( const QUuid& ) ) );
connect( cell, SIGNAL( cellDeleted( const QUuid& ) ), this, SLOT( clipDeletion( const QUuid& ) ) );
QString size;
......@@ -116,27 +116,12 @@ void ImportMediaListController::addClipsFromMedia( Media* media )
addClip( media->clips()->value( uuid ) );
}
void ImportMediaListController::mediaSelection( const QUuid& uuid )
{
emit mediaSelected( uuid );
}
void ImportMediaListController::clipSelection( const QUuid& uuid )
{
emit clipSelected( uuid );
}
void ImportMediaListController::clipDeletion( const QUuid& uuid )
{
m_clipDeleted += 1;
emit clipDeleted( uuid );
}
void ImportMediaListController::mediaDeletion( const QUuid& uuid )
{
emit mediaDeleted( uuid );
}
void ImportMediaListController::clipAdded( Clip* clip )
{
if ( clip->getParent() == 0 )
......
......@@ -57,10 +57,7 @@ class ImportMediaListController : public ListViewController
public slots:
void metaDataComputed( Media* media );
void clipSelection( const QUuid& uuid );
void mediaSelection( const QUuid& uuid );
void clipDeletion( const QUuid& uuid );
void mediaDeletion( const QUuid& uuid );
void clipAdded( Clip* clip );
signals:
......
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