Commit 0eb0b103 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Use forward declarations

parent f75beaaf
......@@ -27,7 +27,6 @@
#include <QUndoCommand>
#include <QObject>
#include <QVector>
#include "UndoStack.h"
#include "MainWorkflow.h"
class Clip;
......
......@@ -27,6 +27,7 @@
#include "GraphicsMovieItem.h"
#include "GraphicsAudioItem.h"
#include "Timeline.h"
#include "UndoStack.h"
TracksScene::TracksScene( QObject* parent ) : QGraphicsScene( parent )
{
......
......@@ -30,6 +30,7 @@
#include "GraphicsTrack.h"
#include "Media.h"
#include "WorkflowRenderer.h"
#include "UndoStack.h"
#include <QScrollBar>
#include <QMouseEvent>
......
......@@ -155,8 +155,9 @@ TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
cw->initialize();
cw->waitForCompleteInit();
//We check for a difference greater than one to avoid false positive when starting.
if ( ( qAbs(start - currentFrame) > 1 ) || cw->getClip()->begin() != 0 ) //Clip was not started as its real begining
if ( ( qAbs(start - currentFrame) > 1 ) || cw->getClip()->begin() != 0 )
{
//Clip was not started as its real begining: adjust the position
adjustClipTime( currentFrame, start, cw );
}
return cw->getOutput( mode );
......
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