[vlmc-devel] [PATCH 04/12] WorkflowFileRendererDialog: Remove usage of WorkflowFileRenderer

Yikai Lu luyikei.qmltu at gmail.com
Wed Apr 6 09:58:17 CEST 2016


---
 src/Gui/WorkflowFileRendererDialog.cpp | 7 +++----
 src/Gui/WorkflowFileRendererDialog.h   | 6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/Gui/WorkflowFileRendererDialog.cpp b/src/Gui/WorkflowFileRendererDialog.cpp
index f75b051..151674f 100644
--- a/src/Gui/WorkflowFileRendererDialog.cpp
+++ b/src/Gui/WorkflowFileRendererDialog.cpp
@@ -27,13 +27,12 @@
 #include "Project/Project.h"
 #include "vlmc.h"
 #include "Workflow/MainWorkflow.h"
-#include "Renderer/WorkflowFileRenderer.h"
+#include "Renderer/WorkflowRenderer.h"
 
-WorkflowFileRendererDialog::WorkflowFileRendererDialog( WorkflowFileRenderer* renderer,
-                                                        quint32 width, quint32 height ) :
+WorkflowFileRendererDialog::WorkflowFileRendererDialog( quint32 width, quint32 height ) :
         m_width( width ),
         m_height( height ),
-        m_renderer( renderer )
+        m_renderer( Core::instance()->workflowRenderer() )
 {
     m_ui.setupUi( this );
     connect( m_ui.cancelButton, SIGNAL( clicked() ), this, SLOT( cancel() ) );
diff --git a/src/Gui/WorkflowFileRendererDialog.h b/src/Gui/WorkflowFileRendererDialog.h
index 54bec06..de46ee2 100644
--- a/src/Gui/WorkflowFileRendererDialog.h
+++ b/src/Gui/WorkflowFileRendererDialog.h
@@ -26,14 +26,14 @@
 #include <QDialog>
 #include "ui_WorkflowFileRendererDialog.h"
 
-class   WorkflowFileRenderer;
+class   WorkflowRenderer;
 
 class   WorkflowFileRendererDialog : public QDialog
 {
     Q_OBJECT
     Q_DISABLE_COPY( WorkflowFileRendererDialog );
 public:
-    WorkflowFileRendererDialog( WorkflowFileRenderer* renderer, quint32 width, quint32 height );
+    WorkflowFileRendererDialog( quint32 width, quint32 height );
     void    setOutputFileName( const QString& filename );
     void    setProgressBarValue( int val );
 
@@ -41,7 +41,7 @@ private:
     Ui::WorkflowFileRendererDialog      m_ui;
     quint32                             m_width;
     quint32                             m_height;
-    WorkflowFileRenderer                *m_renderer;
+    WorkflowRenderer*                   m_renderer;
 
 public slots:
     void    updatePreview( const uchar* buff );
-- 
1.9.1



More information about the Vlmc-devel mailing list