[vlmc-devel] [PATCH 06/14] GenericRenderer: Mark WITH_GUI on Widget-related code

Yikai Lu luyikei.qmltu at gmail.com
Mon Apr 11 08:09:17 CEST 2016


---
 src/Renderer/GenericRenderer.cpp | 2 ++
 src/Renderer/GenericRenderer.h   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Renderer/GenericRenderer.cpp b/src/Renderer/GenericRenderer.cpp
index 6ed435a..7069c49 100644
--- a/src/Renderer/GenericRenderer.cpp
+++ b/src/Renderer/GenericRenderer.cpp
@@ -21,7 +21,9 @@
  *****************************************************************************/
 
 #include "GenericRenderer.h"
+#ifdef WITH_GUI
 #include "preview/RenderWidget.h"
+#endif
 #include <QtGlobal>
 
 GenericRenderer::GenericRenderer()
diff --git a/src/Renderer/GenericRenderer.h b/src/Renderer/GenericRenderer.h
index 5cb34f5..4365e1c 100644
--- a/src/Renderer/GenericRenderer.h
+++ b/src/Renderer/GenericRenderer.h
@@ -173,9 +173,9 @@ protected:
      *  \sa         isPaused()
      */
     bool                            m_paused;
-
+#ifdef WITH_GUI
     QWidget*                        m_renderWidget;
-
+#endif
 public slots:
     /**
      *  \brief      This SLOT will be called when the time cursor has changed.
-- 
1.9.1



More information about the Vlmc-devel mailing list