This commit is contained in:
itsmattkc
2019-02-02 23:16:03 +11:00
parent e6db5795a4
commit 3f952b4d6d
22 changed files with 56 additions and 34 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include <QWidget>
#include <QPainter>
struct Clip;
class Clip;
class Effect;
class EffectRow;
class EffectField;
+1 -1
View File
@@ -8,7 +8,7 @@ class Effect;
class Viewer;
class QOpenGLShaderProgram;
struct Sequence;
struct Clip;
class Clip;
struct ComposeSequenceParams {
Viewer* viewer;
+5 -4
View File
@@ -1267,8 +1267,8 @@ void TimelineWidget::update_ghosts(const QPoint& mouse_pos, bool lock_frame) {
// if the ghost is attached to a clip, snap its markers too
if (panel_timeline->trim_target == -1 && g.clip >= 0) {
Clip* c = sequence->clips.at(g.clip);
for (int j=0;j<c->markers.size();j++) {
long marker_real_time = c->markers.at(j).frame + c->timeline_in - c->clip_in;
for (int j=0;j<c->get_markers().size();j++) {
long marker_real_time = c->get_markers().at(j).frame + c->timeline_in - c->clip_in;
fm = marker_real_time + frame_diff;
if (panel_timeline->snap_to_timeline(&fm, true, true, true)) {
frame_diff = fm - marker_real_time;
@@ -2430,8 +2430,8 @@ void TimelineWidget::paintEvent(QPaintEvent*) {
}
// draw clip markers
for (int j=0;j<clip->markers.size();j++) {
const Marker& m = clip->markers.at(j);
for (int j=0;j<clip->get_markers().size();j++) {
const Marker& m = clip->get_markers().at(j);
// convert marker time (in clip time) to sequence time
long marker_time = m.frame + clip->timeline_in - clip->clip_in;
@@ -2440,6 +2440,7 @@ void TimelineWidget::paintEvent(QPaintEvent*) {
draw_marker(p, marker_x, clip_rect.bottom()-p.fontMetrics().height(), clip_rect.bottom(), false, false);
}
}
p.setBrush(Qt::NoBrush);
// draw clip transitions
draw_transition(p, clip, clip_rect, text_rect, TA_OPENING_TRANSITION);
+1 -1
View File
@@ -12,7 +12,7 @@
#define TRACK_HEIGHT_INCREMENT 10
struct Sequence;
struct Clip;
class Clip;
struct FootageStream;
class Timeline;
class TimelineAction;
+1 -1
View File
@@ -11,7 +11,7 @@
#include <QOpenGLFunctions>
class Viewer;
struct Clip;
class Clip;
struct FootageStream;
class QOpenGLFramebufferObject;
class Effect;