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

Method xDataColumnChanged

src/frontend/dockwidgets/XYCorrelationCurveDock.cpp:198–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void XYCorrelationCurveDock::xDataColumnChanged(const QModelIndex& index) {
199 CONDITIONAL_LOCK_RETURN;
200
201 auto* column = static_cast<AbstractColumn*>(index.internalPointer());
202 for (auto* curve : m_curvesList)
203 static_cast<XYCorrelationCurve*>(curve)->setXDataColumn(column);
204
205 if (column && uiGeneralTab.cbAutoRange->isChecked()) {
206 const auto numberLocale = QLocale();
207 uiGeneralTab.leMin->setText(numberLocale.toString(column->minimum()));
208 uiGeneralTab.leMax->setText(numberLocale.toString(column->maximum()));
209 }
210
211 enableRecalculate();
212}
213
214void XYCorrelationCurveDock::samplingIntervalChanged() {
215 double samplingInterval = uiGeneralTab.sbSamplingInterval->value();

Callers

nothing calls this directly

Calls 5

setXDataColumnMethod · 0.80
setTextMethod · 0.45
toStringMethod · 0.45
minimumMethod · 0.45
maximumMethod · 0.45

Tested by

no test coverage detected