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:
itsmattkc
2020-03-15 18:21:14 +11:00
parent a6fb0c7e2b
commit 50061e4e55
10 changed files with 146 additions and 97 deletions
+3 -1
View File
@@ -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);