Commit f67c2b1c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

PreviewWidget: Do something with the renderer errors.

parent 462b086c
......@@ -27,6 +27,8 @@
#include "ClipRenderer.h"
#include "Clip.h"
#include <QMessageBox>
PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent ) :
QWidget( parent ),
m_ui( new Ui::PreviewWidget ),
......@@ -69,6 +71,7 @@ PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent
connect( m_renderer, SIGNAL( endReached() ), this, SLOT( endReached() ) );
connect( m_ui->rulerWidget, SIGNAL( frameChanged(qint64, MainWorkflow::FrameChangedReason) ),
m_renderer, SLOT( previewWidgetCursorChanged(qint64) ) );
connect( m_renderer, SIGNAL( error() ), this, SLOT( error() ) );
connect( m_ui->pushButtonMarkerStart, SIGNAL( clicked() ), this, SLOT( markerStartClicked() ) );
connect( m_ui->pushButtonMarkerStop, SIGNAL( clicked() ), this, SLOT( markerStopClicked() ) );
......@@ -212,3 +215,11 @@ void PreviewWidget::createNewClipFromMarkers()
if ( clip->addSubclip( part ) == false )
delete part;
}
void
PreviewWidget::error()
{
QMessageBox::warning( this, tr( "Rendering error" ),
tr( "An error occured while rendering.\nPlease check your VLC installation"
" before reporting the issue.") );
}
......@@ -69,6 +69,7 @@ private slots:
void markerStartClicked();
void markerStopClicked();
void createNewClipFromMarkers();
void error();
};
#endif // PREVIEWWIDGET_H
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