fix up white space, using spaces not tabs in this file
This commit is contained in:
@@ -3302,14 +3302,14 @@ void TimelineWidget::paintEvent(QPaintEvent*) {
|
|||||||
// Draw playhead
|
// Draw playhead
|
||||||
p.setPen(Qt::red);
|
p.setPen(Qt::red);
|
||||||
int playhead_x = panel_timeline->getTimelineScreenPointFromFrame(olive::ActiveSequence->playhead);
|
int playhead_x = panel_timeline->getTimelineScreenPointFromFrame(olive::ActiveSequence->playhead);
|
||||||
p.drawLine(playhead_x, rect().top(), playhead_x, rect().bottom());
|
p.drawLine(playhead_x, rect().top(), playhead_x, rect().bottom());
|
||||||
|
|
||||||
// Draw single frame highlight
|
// Draw single frame highlight
|
||||||
int playhead_frame_width = panel_timeline->getTimelineScreenPointFromFrame(olive::ActiveSequence->playhead+1) - playhead_x;
|
int playhead_frame_width = panel_timeline->getTimelineScreenPointFromFrame(olive::ActiveSequence->playhead+1) - playhead_x;
|
||||||
if (playhead_frame_width > 5){ //hardcoded for now, maybe better way to do this?
|
if (playhead_frame_width > 5){ //hardcoded for now, maybe better way to do this?
|
||||||
QRectF singleFrameRect(playhead_x, rect().top(), playhead_frame_width, rect().bottom());
|
QRectF singleFrameRect(playhead_x, rect().top(), playhead_frame_width, rect().bottom());
|
||||||
p.fillRect(singleFrameRect, QColor(255,255,255,15));
|
p.fillRect(singleFrameRect, QColor(255,255,255,15));
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw border
|
// draw border
|
||||||
p.setPen(QColor(0, 0, 0, 64));
|
p.setPen(QColor(0, 0, 0, 64));
|
||||||
|
|||||||
Reference in New Issue
Block a user