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

Method removeCoordinateSystem

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

Source from the content-addressed store, hash-verified

1650 setProjectChanged(true);
1651}
1652void CartesianPlot::removeCoordinateSystem(int index) {
1653 if (index < 0 || index > coordinateSystemCount()) {
1654 DEBUG(Q_FUNC_INFO << ", index " << index << " out of range")
1655 return;
1656 }
1657
1658 // TODO: deleting cSystem?
1659 m_coordinateSystems.remove(index);
1660 if (project())
1661 setProjectChanged(true);
1662}
1663
1664STD_SETTER_CMD_IMPL_S(CartesianPlot, SetDefaultCoordinateSystemIndex, int, defaultCoordinateSystemIndex)
1665int CartesianPlot::defaultCoordinateSystemIndex() const {

Callers 1

removePlotRangeMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected