[vlmc-devel] [PATCH 06/14] GenericRenderer: Mark WITH_GUI on Widget-related code
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Tue Apr 12 13:45:55 CEST 2016
On 04/11/2016 08:09 AM, Yikai Lu wrote:
> ---
> 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.
>
Same thing as for the previous patch, I'd like to store the renderer,
but not as a widget.
More information about the Vlmc-devel
mailing list