MCPcopy Create free account
hub / github.com/KDE/labplot / minChanged

Method minChanged

src/frontend/dockwidgets/CartesianPlotDock.cpp:1027–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027void CartesianPlotDock::minChanged(const Dimension dim, const int index, double min) {
1028 DEBUG(Q_FUNC_INFO << ", value = " << min);
1029 CONDITIONAL_RETURN_NO_LOCK;
1030
1031 // selected x/y range
1032 DEBUG(Q_FUNC_INFO << ", x range index: " << index)
1033 for (auto* plot : m_plotList)
1034 if (!qFuzzyCompare(min, plot->range(dim, index).start()))
1035 plot->setMin(dim, index, min);
1036}
1037
1038void CartesianPlotDock::maxChanged(const Dimension dim, const int index, double max) {
1039 DEBUG(Q_FUNC_INFO << ", value = " << max);

Callers 4

updateRangeListMethod · 0.95
retransformScaleMethod · 0.80
TestChangePlotRangeMethod · 0.80

Calls 3

rangeMethod · 0.80
setMinMethod · 0.80
startMethod · 0.45

Tested by 2

TestChangePlotRangeMethod · 0.64