MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / PlotBufferPreviewer

Method PlotBufferPreviewer

gui/src/widgets/plotbufferpreviewer.cpp:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace scopy;
29
30PlotBufferPreviewer::PlotBufferPreviewer(PlotWidget *p, BufferPreviewer *b, QWidget *parent)
31 : QWidget{parent}
32 , m_manualDataLimits(false)
33 , m_lastMin(p->xAxis()->visibleMin())
34{
35 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
36 QVBoxLayout *layout = new QVBoxLayout(this);
37 setLayout(layout);
38 layout->setMargin(0);
39 layout->setSpacing(0);
40 layout->addWidget(b);
41
42 m_plot = p;
43 m_bufferPreviewer = b;
44 setupBufferPreviewer();
45}
46
47PlotBufferPreviewer::~PlotBufferPreviewer() {}
48

Callers

nothing calls this directly

Calls 4

visibleMinMethod · 0.80
xAxisMethod · 0.45
setSpacingMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected