basic undo support added

This commit is contained in:
itsmattkc
2018-06-07 20:40:56 -07:00
parent 6130d0d91e
commit 544c77828a
8 changed files with 80 additions and 4 deletions
+2 -2
View File
@@ -772,8 +772,8 @@ void TimelineWidget::paintEvent(QPaintEvent*) {
if (panel_timeline->tool == TIMELINE_TOOL_EDIT || panel_timeline->tool == TIMELINE_TOOL_RAZOR) {
QPoint mouse_pos = mapFromGlobal(QCursor::pos());
int track = getTrackFromScreenPoint(mouse_pos.y());
if (is_track_visible(track)) {
int cursor_x = getScreenPointFromFrame(getFrameFromScreenPoint(mouse_pos.x(), false));
if (is_track_visible(track)) {
int cursor_x = getScreenPointFromFrame(getFrameFromScreenPoint(mouse_pos.x(), false));
int cursor_y = getScreenPointFromTrack(track);
p.setPen(Qt::gray);