Commit 53c98538 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Generic renderer: don't define setRenderWidget if GUI is off.

parent 572bed2e
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <QtDebug> #include <QtDebug>
#include <QtGlobal> #include <QtGlobal>
#include <QLabel>
#include "Clip.h" #include "Clip.h"
#include "ClipRenderer.h" #include "ClipRenderer.h"
......
...@@ -35,9 +35,11 @@ GenericRenderer::~GenericRenderer() ...@@ -35,9 +35,11 @@ GenericRenderer::~GenericRenderer()
delete m_mediaPlayer; delete m_mediaPlayer;
} }
#ifdef WITH_GUI
void void
GenericRenderer::setRenderWidget(QWidget *renderWidget) GenericRenderer::setRenderWidget(QWidget *renderWidget)
{ {
m_mediaPlayer->setDrawable( renderWidget->winId() ); m_mediaPlayer->setDrawable( renderWidget->winId() );
m_renderWidget = renderWidget; m_renderWidget = renderWidget;
} }
#endif
...@@ -23,9 +23,12 @@ ...@@ -23,9 +23,12 @@
#ifndef GENERICRENDERER_H #ifndef GENERICRENDERER_H
#define GENERICRENDERER_H #define GENERICRENDERER_H
#include "config.h"
#include <QObject> #include <QObject>
#include <QWidget> #ifdef WITH_GUI
class QLabel; # include <QWidget>
#endif
#include "MainWorkflow.h" #include "MainWorkflow.h"
...@@ -49,12 +52,14 @@ public: ...@@ -49,12 +52,14 @@ public:
explicit GenericRenderer(); explicit GenericRenderer();
virtual ~GenericRenderer(); virtual ~GenericRenderer();
#ifdef WITH_GUI
/** /**
* \brief Set the widget used for rendering the output. * \brief Set the widget used for rendering the output.
* \param renderWidget The widget to use for render. * \param renderWidget The widget to use for render.
* \sa setPreviewLabel( QLabel* ) * \sa setPreviewLabel( QLabel* )
*/ */
void setRenderWidget( QWidget* renderWidget ); void setRenderWidget( QWidget* renderWidget );
#endif
/** /**
* \brief Play or pause the media. * \brief Play or pause the media.
* *
......
Supports Markdown
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