[vlmc-devel] Have a different instance of WorkflowRenderer for the project preview

Yikai Lu git at videolan.org
Fri Apr 22 16:05:46 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 18 17:32:25 2016 +0900| [0f0089c1a3b66efd42b21652d660138ae86294e2] | committer: Hugo Beauzée-Luyssen

Have a different instance of WorkflowRenderer for the project preview

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/0f0089c1a3b66efd42b21652d660138ae86294e2
---

 src/Gui/MainWindow.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 120faa8..5dc6eb7 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -486,7 +486,9 @@ MainWindow::setupProjectPreview()
 {
     m_projectPreview = new PreviewWidget;
     m_projectPreview->setClipEdition( false );
-    m_projectPreview->setRenderer( Core::instance()->workflowRenderer() );
+    auto renderer = new WorkflowRenderer( Core::instance()->backend(), Core::instance()->workflow() );
+    renderer->setParent( m_projectPreview );
+    m_projectPreview->setRenderer( renderer );
     KeyboardShortcutHelper* renderShortcut = new KeyboardShortcutHelper( "keyboard/renderpreview", this );
     connect( renderShortcut, SIGNAL( activated() ), m_projectPreview, SLOT( on_pushButtonPlay_clicked() ) );
     m_dockedProjectPreview = dockWidget( m_projectPreview, Qt::TopDockWidgetArea );



More information about the Vlmc-devel mailing list