MCPcopy Create free account
hub / github.com/IENT/YUView / setModel

Method setModel

YUViewLib/src/ui/views/PlotViewWidget.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void PlotViewWidget::setModel(PlotModel *model)
71{
72 this->model = model;
73 this->modelNrStreamsChanged();
74 if (this->model)
75 {
76 this->viewInitializedForModel = false;
77 this->initViewFromModel();
78 this->connect(model, &PlotModel::dataChanged, this, &PlotViewWidget::modelDataChanged);
79 this->connect(
80 model, &PlotModel::nrStreamsChanged, this, &PlotViewWidget::modelNrStreamsChanged);
81 }
82 this->update();
83}
84
85void PlotViewWidget::modelDataChanged()
86{

Callers 1

Calls 3

modelNrStreamsChangedMethod · 0.95
initViewFromModelMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected