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

Method rangePointsChanged

src/frontend/dockwidgets/CartesianPlotDock.cpp:964–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964void CartesianPlotDock::rangePointsChanged(const QString& text) {
965 CONDITIONAL_LOCK_RETURN;
966
967 const int value = text.toInt();
968 auto type = static_cast<CartesianPlot::RangeType>(ui.cbRangeType->currentIndex());
969 if (type == CartesianPlot::RangeType::First) {
970 for (auto* plot : m_plotList)
971 plot->setRangeFirstValues(value);
972 } else {
973 for (auto* plot : m_plotList)
974 plot->setRangeLastValues(value);
975 }
976}
977
978void CartesianPlotDock::autoScaleChanged(const Dimension dim, const int rangeIndex, bool state) {
979 DEBUG(Q_FUNC_INFO << ", state = " << state)

Callers

nothing calls this directly

Calls 3

setRangeFirstValuesMethod · 0.80
setRangeLastValuesMethod · 0.80
currentIndexMethod · 0.45

Tested by

no test coverage detected