don't automatically create gaps if one already exists that can be resized

Rather than constantly create gaps, we can more intelligently determine whether
a gap can be extended to take the place of a block being removed, etc.
This commit is contained in:
itsmattkc
2019-12-14 00:44:41 +11:00
parent 323718bc11
commit bc5e7349ef
4 changed files with 77 additions and 21 deletions
@@ -122,7 +122,7 @@ void TimelineViewBlockItem::paint(QPainter *painter, const QStyleOptionGraphicsI
case Block::kGap:
if (option->state & QStyle::State_Selected) {
// FIXME: Make this palette or CSS
painter->fillRect(rect(), Qt::white);
painter->fillRect(rect(), QColor(255, 255, 255, 128));
}
break;
case Block::kTransition: