reimplemented rubberband and hand drag routines

This commit is contained in:
itsmattkc
2019-10-14 07:28:27 +11:00
parent 6f4e5a04e4
commit b09fc2b697
8 changed files with 76 additions and 27 deletions
+15 -1
View File
@@ -25,5 +25,19 @@
TimelineWidget::HandTool::HandTool(TimelineWidget* parent) :
Tool(parent)
{
set_drag_mode(QGraphicsView::ScrollHandDrag);
}
void TimelineWidget::HandTool::MousePress(TimelineViewMouseEvent *)
{
parent()->StartHandDrag();
}
void TimelineWidget::HandTool::MouseMove(TimelineViewMouseEvent *)
{
parent()->MoveHandDrag();
}
void TimelineWidget::HandTool::MouseRelease(TimelineViewMouseEvent *)
{
parent()->EndHandDrag();
}