waveformview: show in/out points in waveformview
Moved drawing routines to the base class that is used by both TimeRuler and WaveformView
This commit is contained in:
@@ -29,7 +29,7 @@ void WaveformView::SetBackend(AudioRenderBackend *backend)
|
||||
connect(backend_, &AudioRenderBackend::QueueComplete, this, static_cast<void (WaveformView::*)()>(&WaveformView::update));
|
||||
connect(backend_, &AudioRenderBackend::ParamsChanged, this, &WaveformView::BackendParamsChanged);
|
||||
|
||||
SetTimebase(rational(1, backend_->params().sample_rate()));
|
||||
SetTimebase(backend_->params().time_base());
|
||||
}
|
||||
|
||||
update();
|
||||
@@ -91,6 +91,8 @@ void WaveformView::paintEvent(QPaintEvent *event)
|
||||
|
||||
QPainter p(this);
|
||||
|
||||
DrawTimelinePoints(&p);
|
||||
|
||||
// FIXME: Hardcoded color
|
||||
p.setPen(Qt::green);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user