ui: removed last of the widget proxies
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "common/rational.h"
|
||||
#include "timeline/timelinepoints.h"
|
||||
#include "widget/timelinewidget/snapservice.h"
|
||||
#include "widget/timelinewidget/view/timelineplayhead.h"
|
||||
#include "widget/timelinewidget/timelinescaledobject.h"
|
||||
|
||||
OLIVE_NAMESPACE_ENTER
|
||||
@@ -80,16 +79,6 @@ protected:
|
||||
return playhead_width_;
|
||||
}
|
||||
|
||||
inline const QColor& GetPlayheadColor() const
|
||||
{
|
||||
return style_.GetPlayheadColor();
|
||||
}
|
||||
|
||||
inline const QColor& GetPlayheadHighlightColor() const
|
||||
{
|
||||
return style_.GetPlayheadHighlightColor();
|
||||
}
|
||||
|
||||
signals:
|
||||
/**
|
||||
* @brief Signal emitted whenever the time changes on this ruler, either by user or programmatically
|
||||
@@ -99,8 +88,6 @@ signals:
|
||||
private:
|
||||
int64_t time_;
|
||||
|
||||
TimelinePlayhead style_;
|
||||
|
||||
TimelinePoints* timeline_points_;
|
||||
|
||||
int scroll_;
|
||||
|
||||
@@ -281,7 +281,7 @@ void TimeRuler::paintEvent(QPaintEvent *)
|
||||
// Draw the playhead if it's on screen at the moment
|
||||
int playhead_pos = UnitToScreen(GetTime());
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(GetPlayheadColor());
|
||||
p.setBrush(PLAYHEAD_COLOR);
|
||||
DrawPlayhead(&p, playhead_pos, line_bottom);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user