plot: Add sample output interface

This commit is contained in:
Mike Walters
2016-04-07 22:11:34 +01:00
parent 2102e34589
commit ec45e0f6da
7 changed files with 20 additions and 7 deletions

View File

@@ -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();