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

Method initViewFromModel

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

Source from the content-addressed store, hash-verified

1101}
1102
1103void PlotViewWidget::initViewFromModel()
1104{
1105 if (this->viewInitializedForModel || !this->model)
1106 return;
1107
1108 const auto range = this->model->getReasonabelRangeToShowOnXAxisPer100Pixels();
1109 if (range)
1110 {
1111 this->zoomToPixelsPerValueX = 100.0 / double(*range);
1112 this->update();
1113 }
1114}

Callers 2

setModelMethod · 0.95
modelDataChangedMethod · 0.95

Calls 2

updateMethod · 0.45

Tested by

no test coverage detected