various fixes

This commit is contained in:
itsmattkc
2018-07-22 10:21:47 +01:00
parent c340901419
commit ce4d7fda60
14 changed files with 114 additions and 63 deletions
+25 -25
View File
@@ -21,30 +21,32 @@
#include <QtMath>
Timeline::Timeline(QWidget *parent) :
QDockWidget(parent),
ui(new Ui::Timeline)
QDockWidget(parent),
selecting(false),
moving_init(false),
moving_proc(false),
splitting(false),
importing(false),
playing(false),
trim_in_point(false),
snapped(false),
rect_select_init(false),
rect_select_proc(false),
edit_tool_selects_links(false),
edit_tool_also_seeks(false),
select_also_seeks(false),
using_workarea(false),
paste_seeks(true),
snapping(true),
last_frame(0),
playhead(0),
snap_point(0),
cursor_frame(0),
cursor_track(0),
trim_target(-1),
zoom(1.0),
ui(new Ui::Timeline)
{
selecting = false;
moving_init = false;
moving_proc = false;
splitting = false;
importing = false;
playing = false;
trim_in_point = false;
snapped = false;
rect_select_init = false;
rect_select_proc = false;
edit_tool_selects_links = false;
edit_tool_also_seeks = false;
select_also_seeks = false;
paste_seeks = true;
snapping = true;
last_frame = 0;
playhead = 0;
snap_point = 0;
cursor_frame = 0;
cursor_track = 0;
trim_target = -1;
ui->setupUi(this);
@@ -60,8 +62,6 @@ Timeline::Timeline(QWidget *parent) :
ui->toolArrowButton->click();
zoom = 1.0f;
update_sequence();
connect(&playback_updater, SIGNAL(timeout()), this, SLOT(repaint_timeline()));