waveformview: made UI seekable
This commit is contained in:
@@ -22,12 +22,12 @@
|
||||
|
||||
#include <QPainter>
|
||||
|
||||
const QColor &TimelinePlayhead::PlayheadColor() const
|
||||
const QColor &TimelinePlayhead::GetPlayheadColor() const
|
||||
{
|
||||
return playhead_color_;
|
||||
}
|
||||
|
||||
const QColor &TimelinePlayhead::PlayheadHighlightColor() const
|
||||
const QColor &TimelinePlayhead::GetPlayheadHighlightColor() const
|
||||
{
|
||||
return playhead_highlight_color_;
|
||||
}
|
||||
@@ -45,10 +45,10 @@ void TimelinePlayhead::SetPlayheadHighlightColor(QColor c)
|
||||
void TimelinePlayhead::Draw(QPainter* painter, const QRectF& playhead_rect) const
|
||||
{
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setBrush(PlayheadHighlightColor());
|
||||
painter->setBrush(GetPlayheadHighlightColor());
|
||||
painter->drawRect(playhead_rect);
|
||||
|
||||
painter->setPen(PlayheadColor());
|
||||
painter->setPen(GetPlayheadColor());
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
painter->drawLine(QLineF(playhead_rect.topLeft(), playhead_rect.bottomLeft()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user