input: Start refactoring InputSource to be able to open/close files

This commit is contained in:
Mike Walters
2016-03-03 22:20:57 +00:00
parent e1b99805a2
commit 2135e03c01
5 changed files with 60 additions and 28 deletions

View File

@@ -31,8 +31,9 @@
#include "memory_source.h"
#include "traceplot.h"
PlotView::PlotView() : cursors(this), viewRange({0, 0})
PlotView::PlotView(InputSource *input) : cursors(this), viewRange({0, 0})
{
mainSampleSource = input;
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
enableCursors(false);
}