added transition tool (#109)

This commit is contained in:
itsmattkc
2018-11-05 01:00:13 +11:00
parent 5a2b8341e1
commit 74df34cd76
6 changed files with 174 additions and 7 deletions
+6 -3
View File
@@ -59,7 +59,10 @@ Timeline::Timeline(QWidget *parent) :
ui(new Ui::Timeline),
last_frame(0),
creating(false),
scroll(0)
scroll(0),
transition_tool_clip(-1),
transition_tool_init(false),
transition_tool_proc(false)
{
default_track_height = (QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96) * TRACK_DEFAULT_HEIGHT;
@@ -1170,8 +1173,8 @@ void Timeline::on_recordButton_clicked() {
}
void Timeline::on_toolTransitionButton_clicked() {
decheck_tool_buttons(sender());
decheck_tool_buttons(sender());
ui->timeline_area->setCursor(Qt::CrossCursor);
tool = TIMELINE_TOOL_TRANSITION;
creating = false;
creating = false;
}