timeline: reimplemented linking/unlinking functionality

This commit is contained in:
itsmattkc
2020-03-15 13:41:46 +11:00
parent b57b091ca4
commit 02e7c68104
11 changed files with 102 additions and 19 deletions
+4 -2
View File
@@ -76,9 +76,9 @@ public:
QString block_name() const;
void set_block_name(const QString& name);
static void Link(Block* a, Block* b);
static bool Link(Block* a, Block* b);
static void Link(const QList<Block*>& blocks);
static void Unlink(Block* a, Block* b);
static bool Unlink(Block* a, Block* b);
static void Unlink(const QList<Block*>& blocks);
static bool AreLinked(Block* a, Block* b);
const QVector<Block*>& linked_clips();
@@ -104,6 +104,8 @@ signals:
void LengthChanged(const rational& length);
void LinksChanged();
protected:
rational SequenceToMediaTime(const rational& sequence_time) const;