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

Method sourceChanged

src/backend/worksheet/plots/cartesian/XYAnalysisCurve.cpp:464–492  ·  view source on GitHub ↗

! * called when one of the source objects was changed, * updates the path and triggers the recalculate. */

Source from the content-addressed store, hash-verified

462 * updates the path and triggers the recalculate.
463 */
464void XYAnalysisCurvePrivate::sourceChanged() {
465 updateConnections();
466
467 if (q->isLoading())
468 return;
469
470 if (xDataColumn)
471 q->setXDataColumnPath(xDataColumn->path());
472 else
473 q->setXDataColumnPath(QString());
474
475 if (yDataColumn)
476 q->setYDataColumnPath(yDataColumn->path());
477 else
478 q->setYDataColumnPath(QString());
479
480 if (y2DataColumn)
481 q->setY2DataColumnPath(y2DataColumn->path());
482 else
483 q->setY2DataColumnPath(QString());
484
485 if (dataSourceCurve)
486 q->setDataSourceCurvePath(dataSourceCurve->path());
487 else
488 q->setDataSourceCurvePath(QString());
489
490 if (!q->isLoading())
491 recalculate();
492}
493
494void XYAnalysisCurvePrivate::updateConnections() {
495 for (auto c : m_connections)

Callers

nothing calls this directly

Calls 7

isLoadingMethod · 0.80
setXDataColumnPathMethod · 0.80
setYDataColumnPathMethod · 0.80
setY2DataColumnPathMethod · 0.80
QStringClass · 0.50
pathMethod · 0.45

Tested by

no test coverage detected