Commit 59df02a9 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

PreviewWidget: hide markers if the renderer does not support it

parent 246f862d
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "PreviewWidget.h" #include "PreviewWidget.h"
#include "ui_PreviewWidget.h" #include "ui_PreviewWidget.h"
#include "Library.h" #include "Library.h"
#include "ClipRenderer.h"
PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent ) : PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent ) :
QWidget( parent ), QWidget( parent ),
...@@ -44,6 +45,13 @@ PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent ...@@ -44,6 +45,13 @@ PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent
m_videoPalette.setColor( QPalette::Window, QColor( Qt::black ) ); m_videoPalette.setColor( QPalette::Window, QColor( Qt::black ) );
m_ui->renderWidget->setPalette( m_videoPalette ); m_ui->renderWidget->setPalette( m_videoPalette );
// Hide markers buttons if we are not using a ClipRenderer
if ( !qobject_cast<ClipRenderer*>( genericRenderer ) )
{
m_ui->pushButtonMarkerStart->hide();
m_ui->pushButtonMarkerStop->hide();
}
// Give the renderer to the ruler // Give the renderer to the ruler
m_ui->rulerWidget->setRenderer( m_renderer ); m_ui->rulerWidget->setRenderer( m_renderer );
......
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