! * called when one of the source objects was changed, * updates the path and triggers the recalculate. */
| 462 | * updates the path and triggers the recalculate. |
| 463 | */ |
| 464 | void 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 | |
| 494 | void XYAnalysisCurvePrivate::updateConnections() { |
| 495 | for (auto c : m_connections) |
nothing calls this directly
no test coverage detected