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

Method xDataColumnChanged

src/frontend/dockwidgets/XYFourierTransformCurveDock.cpp:139–156  ·  view source on GitHub ↗

SLOTs for changes triggered in XYFitCurveDock

Source from the content-addressed store, hash-verified

137//**** SLOTs for changes triggered in XYFitCurveDock *****
138//*************************************************************
139void XYFourierTransformCurveDock::xDataColumnChanged(const QModelIndex& index) {
140 CONDITIONAL_LOCK_RETURN;
141
142 auto* column = static_cast<AbstractColumn*>(index.internalPointer());
143
144 for (auto* curve : m_curvesList)
145 static_cast<XYFourierTransformCurve*>(curve)->setXDataColumn(column);
146
147 if (column) {
148 if (uiGeneralTab.cbAutoRange->isChecked()) {
149 const auto numberLocale = QLocale();
150 uiGeneralTab.leMin->setText(numberLocale.toString(column->minimum()));
151 uiGeneralTab.leMax->setText(numberLocale.toString(column->maximum()));
152 }
153 }
154
155 enableRecalculate();
156}
157
158void XYFourierTransformCurveDock::autoRangeChanged() {
159 bool autoRange = uiGeneralTab.cbAutoRange->isChecked();

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