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

Clipcount is now correctly imported

parent d8eace07
......@@ -189,6 +189,8 @@ void PreviewWidget::createNewClipFromMarkers()
return ;
beg = beg < 0 ? 0 : beg;
qDebug() << "PreviewWidget::createNewClipFromMarkers begin" << beg;
qDebug() << "PreviewWidget::createNewClipFromMarkers end" << end;
Clip* part = new Clip( selectedMedia, beg, end );
//Adding the newly created clip to the media
......
......@@ -65,6 +65,11 @@ void MediaCellView::setTitle( const QString& title )
m_ui->title->setText( title );
}
void MediaCellView::setNbClips( int nbClip )
{
m_ui->clipCount->setText( QString::number( nbClip ) );
}
void MediaCellView::setThumbnail( const QPixmap& pixmap )
{
m_ui->thumbnail->setScaledContents( false );
......
......@@ -42,6 +42,7 @@ public:
~MediaCellView();
void setTitle( const QString& title );
void setNbClips( int nbClip );
void setThumbnail( const QPixmap& pixmap );
const QPixmap* getThumbnail() const;
/**
......
......@@ -55,6 +55,7 @@ void MediaListViewController::newMediaLoaded( const QUuid& uuid )
if ( media->getMetadata() != Media::ParsedWithSnapshot )
connect( media, SIGNAL( snapshotComputed( Media* ) ),
this, SLOT( updateCell( Media* ) ) );
cell->setNbClips( media->clips()->size() );
cell->setThumbnail( media->getSnapshot() );
cell->setTitle( media->getFileName() );
cell->setLength( media->getLengthMS() );
......
......@@ -83,6 +83,8 @@ void ClipRenderer::setClip( Clip* clip )
m_selectedMedia = clip->getParent();
m_begin = clip->getBegin();
m_end = clip->getEnd();
qDebug() << "ClipRenderer::setClip begin" << m_begin;
qDebug() << "ClipRenderer::setClip end" << m_end;
if ( m_isRendering == true )
m_mediaChanged = true;
else
......
Supports Markdown
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