Skip to content

Commit

Permalink
Added setInsertCallback to TimelineWidget.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 26, 2023
1 parent af0eccc commit 0a3ae7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tlTimelineUI/TimelineWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ namespace tl
return p.timelineItem->isDragging();
}

//! Sets a callback for inserting items
void TimelineWidget::setInsertCallback(const std::function<void(const std::vector<timeline::InsertData>&)>& value)
{
_p->timelineItem->setInsertCallback(value);
}

void TimelineWidget::mousePressEvent(ui::MouseClickEvent& event)
{
IWidget::mousePressEvent(event);
Expand Down
3 changes: 3 additions & 0 deletions lib/tlTimelineUI/TimelineWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ namespace tl
//! Return whether a clip is getting dragged.
bool isDragging() const;

//! Sets a callback for inserting items
void setInsertCallback(const std::function<void(const std::vector<timeline::InsertData>&)>&);

void setGeometry(const math::Box2i&) override;
void tickEvent(
bool,
Expand Down

0 comments on commit 0a3ae7e

Please sign in to comment.