Commit c14bb4cc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectHelper: Adding an UUID for each effect instance.

parent 3e71a815
......@@ -36,11 +36,16 @@ EffectsEngine::~EffectsEngine()
{
}
EffectsEngine::EffectHelper::EffectHelper( Effect *_effect, qint64 _start, qint64 _end ) :
EffectsEngine::EffectHelper::EffectHelper( Effect *_effect, qint64 _start, qint64 _end,
const QString& _uuid ) :
effect( _effect ),
start( _start ),
end( _end )
{
if ( _uuid.isNull() == true )
uuid = QUuid::createUuid();
else
uuid = _uuid;
}
void
......
......@@ -38,10 +38,12 @@ class EffectsEngine : public QObject, public Singleton<EffectsEngine>
public:
struct EffectHelper
{
EffectHelper( Effect* effect, qint64 start = 0, qint64 end = -1 );
EffectHelper( Effect* effect, qint64 start = 0, qint64 end = -1,
const QString& uuid = QString() );
Effect* effect;
qint64 start;
qint64 end;
QUuid uuid;
};
typedef QList<EffectHelper*> EffectList;
......
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