timeline: allow dropping on trackviewitem to overwrite at 0

Fixes #1928
This commit is contained in:
itsmattkc
2022-05-13 09:52:28 -07:00
parent 07f92911cd
commit 912dcfdb3b
6 changed files with 45 additions and 0 deletions
@@ -157,6 +157,11 @@ TimelineWidget::TimelineWidget(QWidget *parent) :
connect(view, &TimelineView::DragLeft, this, &TimelineWidget::ViewDragLeft);
connect(view, &TimelineView::DragDropped, this, &TimelineWidget::ViewDragDropped);
TrackView *tv = tview->track_view();
connect(tv, &TrackView::DragEntered, this, &TimelineWidget::ViewDragEntered);
connect(tv, &TrackView::DragLeft, this, &TimelineWidget::ViewDragLeft);
connect(tv, &TrackView::DragDropped, this, &TimelineWidget::ViewDragDropped);
connect(tview->splitter(), &QSplitter::splitterMoved, this, &TimelineWidget::UpdateHorizontalSplitters);
// Connect each view's scroll to each other