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

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

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