connect timelines to sequence viewer

This commit is contained in:
itsmattkc
2019-04-03 12:05:54 +11:00
parent 365d96f83e
commit d504ee6302
14 changed files with 115 additions and 34 deletions
+9 -2
View File
@@ -114,9 +114,9 @@ Timeline::Timeline(QWidget *parent) :
toolArrowButton->click();
connect(horizontalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(setScroll(int)));
//connect(videoScrollbar, SIGNAL(valueChanged(int)), video_area, SLOT(setScroll(int)));
//connect(audioScrollbar, SIGNAL(valueChanged(int)), audio_area, SLOT(setScroll(int)));
connect(horizontalScrollBar, SIGNAL(resize_move(double)), this, SLOT(resize_move(double)));
connect(this, SIGNAL(SequenceChanged(SequencePtr)), panel_sequence_viewer, SLOT(set_sequence(SequencePtr)));
connect(this, SIGNAL(visibilityChanged(bool)), this, SLOT(visibility_changed_slot(bool)));
update_sequence();
@@ -1051,6 +1051,13 @@ void Timeline::set_tool() {
}
}
void Timeline::visibility_changed_slot(bool visibility)
{
if (visibility) {
emit SequenceChanged(sequence_);
}
}
void olive::timeline::MultiplyTrackSizesByDPI()
{
kTrackDefaultHeight *= QApplication::desktop()->devicePixelRatio();