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

Method setIndex

src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:732–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void CartesianCoordinateSystem::setIndex(const Dimension dim, const int index) {
733 switch (dim) {
734 case Dimension::X:
735 d->xIndex = index;
736 d->xScales.clear();
737 break;
738 case Dimension::Y:
739 d->yIndex = index;
740 d->yScales.clear();
741 break;
742 }
743}
744
745/*!
746 * Adjusted the function QRectF::contains(QPointF) from Qt 4.8.4 to handle the

Callers 2

loadMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected