mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
plot: Add sample output interface
This commit is contained in:
10
plot.cpp
10
plot.cpp
@@ -19,11 +19,21 @@
|
||||
|
||||
#include "plot.h"
|
||||
|
||||
Plot::Plot(std::shared_ptr<AbstractSampleSource> src) : sampleSource(src)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool Plot::mouseEvent(QEvent::Type type, QMouseEvent event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::shared_ptr<AbstractSampleSource> Plot::output()
|
||||
{
|
||||
return sampleSource;
|
||||
}
|
||||
|
||||
void Plot::paintBack(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
|
||||
{
|
||||
painter.save();
|
||||
|
||||
Reference in New Issue
Block a user