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

Method setupPlotInfo

tmp/grutil/src/grtimeplotaddon.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void GRTimePlotAddon::setupPlotInfo()
208{
209 PlotInfo *info = m_plotWidget->getPlotInfo();
210
211 TimeSamplingInfo *samplingInfo = new TimeSamplingInfo(m_plotWidget);
212 info->addCustomInfo(samplingInfo, InfoPosition::IP_RIGHT);
213 connect(this, &GRTimePlotAddon::xAxisUpdated, this, [=]() { samplingInfo->update(m_currentSamplingInfo); });
214
215 info->addCustomInfo(new TimestampInfo(m_plotWidget), InfoPosition::IP_RIGHT);
216
217 QLabel *statusInfo = info->addLabelInfo(InfoPosition::IP_RIGHT);
218 connect(this, &GRTimePlotAddon::statusChanged, this, [=](QString status) { statusInfo->setText(status); });
219}
220
221void GRTimePlotAddon::setupBufferPreviewer()
222{

Callers

nothing calls this directly

Calls 5

getPlotInfoMethod · 0.80
addCustomInfoMethod · 0.80
addLabelInfoMethod · 0.80
connectFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected