Commit d8e4370a authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Added a public slot "stop" for the PreviewWidget

parent b2783596
......@@ -179,7 +179,13 @@ void PreviewWidget::on_pushButtonPreviousFrame_clicked()
m_renderer->previousFrame();
}
const GenericRenderer* PreviewWidget::getGenericRenderer() const
const GenericRenderer* PreviewWidget::getGenericRenderer() const
{
return m_renderer;
}
void PreviewWidget::stop()
{
//Ugly but avoid code dupplication.
on_pushButtonStop_clicked();
}
......@@ -52,6 +52,9 @@ private:
protected:
virtual void changeEvent( QEvent *e );
public slots:
void stop();
private slots:
void on_pushButtonPlay_clicked();
void on_pushButtonStop_clicked();
......
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