Commit 73cc27ca authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Correcting the window modality (does not hang all the render...)

parent 48c5bd53
......@@ -36,6 +36,8 @@ public:
void setProgressBarValue( int val );
private:
Ui::WorkflowFileRendererDialog m_ui;
friend class WorkflowFileRenderer;
};
#endif // WORKFLOWFILERENDERERDIALOG_H
......@@ -4,8 +4,10 @@ WorkflowFileRenderer::WorkflowFileRenderer( const QString& outputFileName ) :
m_outputFileName( outputFileName )
{
m_dialog = new WorkflowFileRendererDialog;
m_dialog->setModal( true );
m_dialog->setOutputFileName( outputFileName );
m_mediaPlayer = new LibVLCpp::MediaPlayer;
connect( m_dialog->m_ui.cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButtonClicked() ) );
}
WorkflowFileRenderer::~WorkflowFileRenderer()
......@@ -32,7 +34,7 @@ void WorkflowFileRenderer::run()
connect( m_mainWorkflow, SIGNAL( mainWorkflowEndReached() ), this, SLOT( stop() ) );
connect( m_mainWorkflow, SIGNAL( positionChanged( float ) ), this, SLOT( positionChanged( float ) ) );
m_dialog->exec();
m_dialog->show();
m_isRendering = true;
m_stopping = false;
......@@ -53,7 +55,7 @@ void WorkflowFileRenderer::positionChanged( float newPos )
m_dialog->setProgressBarValue( static_cast<int>( newPos * 100 ) );
}
void WorkflowFileRenderer::on_cancelButton_clicked()
void WorkflowFileRenderer::cancelButtonClicked()
{
stop();
}
......@@ -48,7 +48,7 @@ private:
private slots:
void stop();
void positionChanged( float newPos );
void on_cancelButton_clicked();
void cancelButtonClicked();
};
#endif // WORKFLOWFILERENDERER_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