From f15683b5936196d0b22e9567cccc730c95175121 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 13 Dec 2019 01:55:41 +1100 Subject: [PATCH] allow gaps and transitions to be selected in the timeline This will be useful for various reasons, however the behavior of selecting gaps and transitions will need to be regulated harder than clips in the near future. --- app/widget/timelinewidget/view/timelineviewblockitem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/widget/timelinewidget/view/timelineviewblockitem.cpp b/app/widget/timelinewidget/view/timelineviewblockitem.cpp index a6adfe3b2..649aa6eef 100644 --- a/app/widget/timelinewidget/view/timelineviewblockitem.cpp +++ b/app/widget/timelinewidget/view/timelineviewblockitem.cpp @@ -46,7 +46,10 @@ void TimelineViewBlockItem::SetBlock(Block *block) { block_ = block; - setFlag(QGraphicsItem::ItemIsSelectable, block_->type() == Block::kClip); + setFlag(QGraphicsItem::ItemIsSelectable, + block_->type() == Block::kClip + || block_->type() == Block::kGap + || block_->type() == Block::kTransition); UpdateRect(); }