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

Method currentCurve

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:1945–1952  ·  view source on GitHub ↗

! * returns the first selected XYCurve in the plot */

Source from the content-addressed store, hash-verified

1943 * returns the first selected XYCurve in the plot
1944 */
1945const XYCurve* CartesianPlot::currentCurve() const {
1946 for (const auto* curve : children<const XYCurve>()) {
1947 if (curve->graphicsItem()->isSelected())
1948 return curve;
1949 }
1950
1951 return nullptr;
1952}
1953
1954void CartesianPlot::addDataReductionCurve() {
1955 auto* curve = new XYDataReductionCurve(i18n("Data Reduction"));

Callers 2

addCurveMethod · 0.80
addCurveMethod · 0.80

Calls 2

isSelectedMethod · 0.45
graphicsItemMethod · 0.45

Tested by 2

addCurveMethod · 0.64
addCurveMethod · 0.64