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

Clip: Adding a isChild method.

parent 05e0cd20
......@@ -334,3 +334,17 @@ Clip::fullId() const
}
return id;
}
bool
Clip::isChild( const QUuid &uuid) const
{
Clip* c = m_parent;
while ( c != NULL )
{
if ( c->m_uuid == uuid )
return true;
c = c->m_parent;
}
return false;
}
......@@ -135,6 +135,11 @@ class Clip : public QObject
*/
QString fullId() const;
/**
* \return true if the clip is a child of the given clip uuid
*/
bool isChild( const QUuid& uuid ) const;
private:
Media *m_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