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

Method xDataColumnChanged

src/frontend/dockwidgets/XYHilbertTransformCurveDock.cpp:124–139  ·  view source on GitHub ↗

SLOTs for changes triggered in XYFitCurveDock

Source from the content-addressed store, hash-verified

122//**** SLOTs for changes triggered in XYFitCurveDock *****
123//*************************************************************
124void XYHilbertTransformCurveDock::xDataColumnChanged(const QModelIndex& index) {
125 CONDITIONAL_LOCK_RETURN;
126
127 auto* column = static_cast<AbstractColumn*>(index.internalPointer());
128
129 for (auto* curve : m_curvesList)
130 static_cast<XYHilbertTransformCurve*>(curve)->setXDataColumn(column);
131
132 if (column && uiGeneralTab.cbAutoRange->isChecked()) {
133 const auto numberLocale = QLocale();
134 uiGeneralTab.leMin->setText(numberLocale.toString(column->minimum()));
135 uiGeneralTab.leMax->setText(numberLocale.toString(column->maximum()));
136 }
137
138 enableRecalculate();
139}
140
141void XYHilbertTransformCurveDock::autoRangeChanged() {
142 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