SLOTs for changes triggered in XYFitCurveDock
| 137 | //**** SLOTs for changes triggered in XYFitCurveDock ***** |
| 138 | //************************************************************* |
| 139 | void 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 | |
| 158 | void XYFourierTransformCurveDock::autoRangeChanged() { |
| 159 | bool autoRange = uiGeneralTab.cbAutoRange->isChecked(); |
nothing calls this directly
no test coverage detected